From 432eafeb77c0f4d9178ffb7b95a7fc7f0ae17927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A=28noham=29=C2=B2?= <100566912+NohamR@users.noreply.github.com> Date: Sun, 3 May 2026 17:31:36 +0200 Subject: [PATCH] Select tvOS Theos repo and remove YouTubeHeader --- .github/workflows/build.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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