Translate download-related strings to French (#73) #265
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build YouMod | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch to build from' | |
| required: false | |
| default: 'main' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build YouMod | |
| runs-on: macos-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout YouMod | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ inputs.branch || github.ref }} | |
| path: YouMod | |
| - name: Install dependencies | |
| run: brew install make ldid | |
| - name: Set PATH environment variables | |
| run: | | |
| echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH | |
| echo "THEOS=${{ github.workspace }}/theos" >> $GITHUB_ENV | |
| # Original from YTweaks | |
| - name: Get Theos commit | |
| run: | | |
| get_commit_hash() { | |
| local repo_url=$1 | |
| git ls-remote "$repo_url" HEAD | awk '{print substr($1,1,7)}' | |
| } | |
| echo "THEOS_COMMIT=$(get_commit_hash "https://github.com/roothide/theos")" >> $GITHUB_ENV | |
| - name: Cache Theos | |
| id: cache-theos | |
| uses: actions/cache@v5 | |
| with: | |
| path: theos | |
| key: YouMod-18.6-SDK-${{ env.THEOS_COMMIT }} | |
| - name: Setup Theos | |
| if: ${{ steps.cache-theos.outputs.cache-hit != 'true' }} | |
| run: | | |
| git clone --quiet --depth=1 --recurse-submodules https://github.com/roothide/theos.git | |
| git clone --quiet --depth=1 -n --filter=tree:0 https://github.com/Tonwalter888/iOS-SDKs.git | |
| cd iOS-SDKs | |
| git sparse-checkout set --no-cone iPhoneOS18.6.sdk | |
| git checkout --quiet | |
| mv *.sdk "$THEOS/sdks" | |
| - name: Clone headers | |
| run: | | |
| if [ ! -d "$THEOS/include/YouTubeHeader" ]; then | |
| git clone --quiet --depth=1 https://github.com/PoomSmart/YouTubeHeader.git "$THEOS/include/YouTubeHeader" | |
| else | |
| cd $THEOS/include/YouTubeHeader | |
| git pull --quiet --force | |
| cd ${{ github.workspace }} | |
| fi | |
| if [ ! -d "$THEOS/include/PSHeader" ]; then | |
| git clone --quiet --depth=1 https://github.com/PoomSmart/PSHeader.git "$THEOS/include/PSHeader" | |
| else | |
| cd $THEOS/include/PSHeader | |
| git pull --quiet --force | |
| cd ${{ github.workspace }} | |
| fi | |
| - name: Fix Theos od broken pipe issue | |
| run: sed -i '' 's/od -c "$i" | head/od -c "$i" 2>\/dev\/null | head/g' $THEOS/bin/convert_xml_plist.sh || true | |
| - name: Build YouMod | |
| run: | | |
| cd YouMod | |
| echo "YOUMOD_VERSION=$(grep '^Version:' control | cut -d ' ' -f2)" >> $GITHUB_ENV | |
| make clean package DEBUG=0 FINALPACKAGE=1 | |
| make clean package DEBUG=0 FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless | |
| make clean package DEBUG=0 FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=roothide | |
| mv packages/*.deb ${{ github.workspace }} | |
| - name: Upload the tweak .deb(s) | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: YouMod v${{ env.YOUMOD_VERSION }} | |
| path: ${{ github.workspace }}/*.deb | |
| if-no-files-found: error | |
| overwrite: true | |
| - name: Create a draft release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| tag_name: v${{ env.YOUMOD_VERSION }} | |
| name: v${{ env.YOUMOD_VERSION }} | |
| files: | | |
| dev.water888.youmod_${{ env.YOUMOD_VERSION }}_iphoneos-arm.deb | |
| dev.water888.youmod_${{ env.YOUMOD_VERSION }}_iphoneos-arm64.deb | |
| dev.water888.youmod_${{ env.YOUMOD_VERSION }}_iphoneos-arm64e.deb | |
| draft: true |