From 50129ee7d832c289a548c424b8c59eee43bb9c2f Mon Sep 17 00:00:00 2001 From: Dan <38832025+dayanch96@users.noreply.github.com> Date: Mon, 28 Jul 2025 19:35:57 +0300 Subject: [PATCH] revert ytuhd to 0f59b38, check inputs for theos --- .github/workflows/cyan_ts.yml | 16 +++++++++------- .github/workflows/main.yml | 21 +++++++++++++-------- .github/workflows/ytp_beta.yml | 21 +++++++++++++-------- 3 files changed, 35 insertions(+), 23 deletions(-) diff --git a/.github/workflows/cyan_ts.yml b/.github/workflows/cyan_ts.yml index 3a11f96..b2e84bb 100644 --- a/.github/workflows/cyan_ts.yml +++ b/.github/workflows/cyan_ts.yml @@ -188,9 +188,11 @@ jobs: - name: Clone YTUHD if: ${{ inputs.enable_ytuhd }} - run: | - cd ${{ github.workspace }} - git clone --quiet --depth=1 https://github.com/PoomSmart/YTUHD.git + uses: actions/checkout@v4.1.7 + with: + repository: PoomSmart/YTUHD + ref: 0f59b38817d554ab692a0053456319847a6ab1a1 + path: ${{ github.workspace }}/YTUHD - name: Clone Return-YouTube-Dislikes if: ${{ inputs.enable_ryd }} @@ -303,11 +305,11 @@ jobs: run: | mkdir -p ytp_tf - for deb in ytplus.deb youpip.deb ytuhd.deb ryd.deb ygs.deb yq.deb ytvo.deb demc.deb; do - if [ -f "$deb" ]; then - echo "Extracting $deb..." + for f in *.deb; do + if [ -f "$f" ]; then + echo "Extracting $f..." mkdir -p tmp_deb - dpkg-deb -x "$deb" tmp_deb + dpkg-deb -x "$f" tmp_deb find tmp_deb -type f -name "*.dylib" -exec cp -R {} ytp_tf/ \; find tmp_deb -type d -name "*.bundle" -exec cp -R {} ytp_tf/ \; rm -rf tmp_deb diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a02e47d..a270157 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -105,6 +105,7 @@ jobs: run: echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH - name: Cache Theos + if: ${{ inputs.enable_youpip || inputs.enable_ytuhd || inputs.enable_yq || inputs.enable_ryd || inputs.enable_demc }} id: theos uses: actions/cache@v4 env: @@ -115,7 +116,7 @@ jobs: restore-keys: ${{ env.cache-name }} - name: Setup Theos - if: steps.theos.outputs.cache-hit != 'true' + if: ${{ (inputs.enable_youpip || inputs.enable_ytuhd || inputs.enable_yq || inputs.enable_ryd || inputs.enable_demc) && steps.theos.outputs.cache-hit != 'true' }} uses: actions/checkout@v4.1.7 with: repository: theos/theos @@ -124,7 +125,7 @@ jobs: submodules: recursive - name: Download iOS SDK - if: steps.theos.outputs.cache-hit != 'true' + if: ${{ (inputs.enable_youpip || inputs.enable_ytuhd || inputs.enable_yq || inputs.enable_ryd || inputs.enable_demc) && steps.theos.outputs.cache-hit != 'true' }} run: | git clone --quiet -n --depth=1 --filter=tree:0 https://github.com/theos/sdks/ cd sdks @@ -152,6 +153,7 @@ jobs: mv *.appex ${{ github.workspace }} - name: Clone YouTubeHeader + if: ${{ inputs.enable_youpip || inputs.enable_ytuhd || inputs.enable_yq || inputs.enable_ryd || inputs.enable_demc }} run: | if [ -d "$THEOS/include/YouTubeHeader" ]; then echo "YouTubeHeader exists. Pulling latest changes..." @@ -172,6 +174,7 @@ jobs: THEOS: ${{ github.workspace }}/theos - name: Clone PSHeader + if: ${{ inputs.enable_youpip || inputs.enable_ytuhd || inputs.enable_yq || inputs.enable_ryd || inputs.enable_demc }} run: | if [ -d "$THEOS/include/PSHeader" ]; then echo "PSHeader exists. Pulling latest changes..." @@ -193,9 +196,11 @@ jobs: - name: Clone YTUHD if: ${{ inputs.enable_ytuhd }} - run: | - cd ${{ github.workspace }} - git clone --quiet --depth=1 https://github.com/PoomSmart/YTUHD.git + uses: actions/checkout@v4.1.7 + with: + repository: PoomSmart/YTUHD + ref: 0f59b38817d554ab692a0053456319847a6ab1a1 + path: ${{ github.workspace }}/YTUHD - name: Clone Return-YouTube-Dislikes if: ${{ inputs.enable_ryd }} @@ -294,9 +299,9 @@ jobs: run: | tweaks="ytplus.deb OpenYoutubeSafariExtension.appex" - for deb in youpip.deb ytuhd.deb ryd.deb ygs.deb yq.deb ytvo.deb demc.deb; do - if [ -f "$deb" ]; then - tweaks="$tweaks $deb" + for f in *.deb; do + if [ -f "$f" ]; then + tweaks="$tweaks $f" fi done diff --git a/.github/workflows/ytp_beta.yml b/.github/workflows/ytp_beta.yml index 633ee1e..86ac574 100644 --- a/.github/workflows/ytp_beta.yml +++ b/.github/workflows/ytp_beta.yml @@ -116,6 +116,7 @@ jobs: run: echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH - name: Cache Theos + if: ${{ inputs.enable_youpip || inputs.enable_ytuhd || inputs.enable_yq || inputs.enable_ryd || inputs.enable_demc }} id: theos uses: actions/cache@v4 env: @@ -126,7 +127,7 @@ jobs: restore-keys: ${{ env.cache-name }} - name: Setup Theos - if: steps.theos.outputs.cache-hit != 'true' + if: ${{ (inputs.enable_youpip || inputs.enable_ytuhd || inputs.enable_yq || inputs.enable_ryd || inputs.enable_demc) && steps.theos.outputs.cache-hit != 'true' }} uses: actions/checkout@v4.1.7 with: repository: theos/theos @@ -135,7 +136,7 @@ jobs: submodules: recursive - name: Download iOS SDK - if: steps.theos.outputs.cache-hit != 'true' + if: ${{ (inputs.enable_youpip || inputs.enable_ytuhd || inputs.enable_yq || inputs.enable_ryd || inputs.enable_demc) && steps.theos.outputs.cache-hit != 'true' }} run: | git clone --quiet -n --depth=1 --filter=tree:0 https://github.com/theos/sdks/ cd sdks @@ -157,6 +158,7 @@ jobs: mv *.appex ${{ github.workspace }} - name: Clone YouTubeHeader + if: ${{ inputs.enable_youpip || inputs.enable_ytuhd || inputs.enable_yq || inputs.enable_ryd || inputs.enable_demc }} run: | if [ -d "$THEOS/include/YouTubeHeader" ]; then echo "YouTubeHeader exists. Pulling latest changes..." @@ -177,6 +179,7 @@ jobs: THEOS: ${{ github.workspace }}/theos - name: Clone PSHeader + if: ${{ inputs.enable_youpip || inputs.enable_ytuhd || inputs.enable_yq || inputs.enable_ryd || inputs.enable_demc }} run: | if [ -d "$THEOS/include/PSHeader" ]; then echo "PSHeader exists. Pulling latest changes..." @@ -198,9 +201,11 @@ jobs: - name: Clone YTUHD if: ${{ inputs.enable_ytuhd }} - run: | - cd ${{ github.workspace }} - git clone --quiet --depth=1 https://github.com/PoomSmart/YTUHD.git + uses: actions/checkout@v4.1.7 + with: + repository: PoomSmart/YTUHD + ref: 0f59b38817d554ab692a0053456319847a6ab1a1 + path: ${{ github.workspace }}/YTUHD - name: Clone Return-YouTube-Dislikes if: ${{ inputs.enable_ryd }} @@ -299,9 +304,9 @@ jobs: run: | tweaks="ytplus.deb OpenYoutubeSafariExtension.appex" - for deb in youpip.deb ytuhd.deb ryd.deb ygs.deb yq.deb ytvo.deb demc.deb; do - if [ -f "$deb" ]; then - tweaks="$tweaks $deb" + for f in *.deb; do + if [ -f "$f" ]; then + tweaks="$tweaks $f" fi done