diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5adfa6f..419999c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,7 +43,14 @@ jobs: 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 + TWEAK_PATH="${{ inputs.tweak || 'BusinessJB' }}" + if [[ "$TWEAK_PATH" == *"tvOS"* || "$TWEAK_PATH" == *"TVOS"* ]]; then + THEOS_URL="https://github.com/NohamR/theos-tvOS" + else + THEOS_URL="https://github.com/roothide/theos" + fi + echo "THEOS_REPO=$THEOS_URL" >> $GITHUB_ENV + echo "THEOS_COMMIT=$(get_commit_hash "$THEOS_URL")" >> $GITHUB_ENV - name: Cache Theos id: cache-theos @@ -55,7 +62,7 @@ jobs: - 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 --recurse-submodules ${{ env.THEOS_REPO }}.git theos 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 @@ -64,14 +71,6 @@ jobs: - 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