Select tvOS Theos repo and remove YouTubeHeader

This commit is contained in:
√(noham)²
2026-05-03 17:31:36 +02:00
parent 5a068bf71a
commit 432eafeb77

View File

@@ -43,7 +43,14 @@ jobs:
local repo_url=$1 local repo_url=$1
git ls-remote "$repo_url" HEAD | awk '{print substr($1,1,7)}' 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 - name: Cache Theos
id: cache-theos id: cache-theos
@@ -55,7 +62,7 @@ jobs:
- name: Setup Theos - name: Setup Theos
if: ${{ steps.cache-theos.outputs.cache-hit != 'true' }} if: ${{ steps.cache-theos.outputs.cache-hit != 'true' }}
run: | 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 git clone --quiet --depth=1 -n --filter=tree:0 https://github.com/Tonwalter888/iOS-SDKs.git
cd iOS-SDKs cd iOS-SDKs
git sparse-checkout set --no-cone iPhoneOS18.6.sdk git sparse-checkout set --no-cone iPhoneOS18.6.sdk
@@ -64,14 +71,6 @@ jobs:
- name: Clone headers - name: Clone headers
run: | 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 if [ ! -d "$THEOS/include/PSHeader" ]; then
git clone --quiet --depth=1 https://github.com/PoomSmart/PSHeader.git "$THEOS/include/PSHeader" git clone --quiet --depth=1 https://github.com/PoomSmart/PSHeader.git "$THEOS/include/PSHeader"
else else