From 8c79a6c6887d2862c74ebbdc064035fc07311c35 Mon Sep 17 00:00:00 2001 From: Dan <38832025+dayanch96@users.noreply.github.com> Date: Fri, 25 Jul 2025 00:31:27 +0300 Subject: [PATCH] 5.2b2 --- .github/workflows/main.yml | 24 +++++++++++++++--------- .github/workflows/ytp_beta.yml | 33 ++++++++++++++++++--------------- README.md | 9 +++++++-- 3 files changed, 40 insertions(+), 26 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 756854e..a02e47d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,7 @@ on: tweak_version: description: "The version of the tweak to use. Enter the version manually from dayanch96/YTLite/releases or leave default" - default: "5.2b1" + default: "5.2b2" required: true type: string @@ -84,14 +84,17 @@ jobs: - name: Hide sensitive inputs uses: levibostian/action-hide-sensitive-inputs@v1 + with: + exclude_inputs: bundle_id,display_name,enable_demc,enable_ryd,enable_youpip,enable_yq,enable_ytuhd,info_note,tweak_version - - name: Validate IPA URL + - name: Download and validate IPA run: | - curl -L -r 0-1023 -o sample.part "${{ inputs.ipa_url }}" > /dev/null 2>&1 - file_type=$(file --mime-type -b sample.part) + wget "${{ inputs.ipa_url }}" --no-verbose -O ${{ github.workspace }}/youtube.ipa + + file_type=$(file --mime-type -b ${{ github.workspace }}/youtube.ipa) if [[ "$file_type" != "application/x-ios-app" && "$file_type" != "application/zip" ]]; then - echo "::error::Validation failed: The file is not a valid IPA file. Detected type: $file_type." + echo "::error::Validation failed: The downloaded file is not a valid IPA. Detected type: $file_type." exit 1 fi @@ -140,10 +143,6 @@ jobs: deb_url="https://github.com/dayanch96/YTLite/releases/download/v${{ inputs.tweak_version }}/com.dvntm.ytlite_${{ inputs.tweak_version }}_iphoneos-arm.deb" wget "$deb_url" --no-verbose -O ${{ github.workspace }}/ytplus.deb - - name: Download YouTube - id: download_youtube - run: wget "${{ inputs.ipa_url }}" --no-verbose -O ${{ github.workspace }}/youtube.ipa - - name: Clone Open in YouTube (Safari extension) run: | git clone --quiet -n --depth=1 --filter=tree:0 https://github.com/CokePokes/YoutubeExtensions/ @@ -163,6 +162,12 @@ jobs: cd $THEOS/include git clone --quiet --depth=1 https://github.com/PoomSmart/YouTubeHeader.git fi + + if [ "${{ inputs.enable_demc }}" = "true" ]; then + echo "Copying YouTubeHeader to YTHeaders..." + rm -rf "$THEOS/include/YTHeaders" + cp -r "$THEOS/include/YouTubeHeader" "$THEOS/include/YTHeaders" + fi env: THEOS: ${{ github.workspace }}/theos @@ -300,6 +305,7 @@ jobs: - name: Upload to GitHub Releases uses: softprops/action-gh-release@v2.0.1 with: + tag_name: ytp-${{ github.run_number }} name: YouTubePlus v${{ inputs.tweak_version }} (${{ github.run_number }}) files: YouTubePlus_${{ inputs.tweak_version }}.ipa draft: true diff --git a/.github/workflows/ytp_beta.yml b/.github/workflows/ytp_beta.yml index f98447a..633ee1e 100644 --- a/.github/workflows/ytp_beta.yml +++ b/.github/workflows/ytp_beta.yml @@ -84,21 +84,25 @@ jobs: - name: Hide sensitive inputs uses: levibostian/action-hide-sensitive-inputs@v1 + with: + exclude_inputs: bundle_id,display_name,enable_demc,enable_ryd,enable_youpip,enable_yq,enable_ytuhd,info_note - - name: Validate IPA URL + - name: Download and validate IPA run: | - curl -L -r 0-1023 -o sample.part "${{ inputs.ipa_url }}" > /dev/null 2>&1 - file_type=$(file --mime-type -b sample.part) + wget "${{ inputs.ipa_url }}" --no-verbose -O ${{ github.workspace }}/youtube.ipa + + file_type=$(file --mime-type -b ${{ github.workspace }}/youtube.ipa) if [[ "$file_type" != "application/x-ios-app" && "$file_type" != "application/zip" ]]; then - echo "::error::Validation failed: The file is not a valid IPA file. Detected type: $file_type." + echo "::error::Validation failed: The downloaded file is not a valid IPA. Detected type: $file_type." exit 1 fi - - name: Validate Tweak URL + - name: Download and validate tweak run: | - curl -L -r 0-1023 -o sample.part "${{ inputs.tweak_url }}" > /dev/null 2>&1 - file_type=$(file --mime-type -b sample.part) + wget "${{ inputs.tweak_url }}" --no-verbose -O ${{ github.workspace }}/ytplus.deb + + file_type=$(file --mime-type -b ${{ github.workspace }}/ytplus.deb) if [[ "$file_type" != "application/vnd.debian.binary-package" ]]; then echo "::error::Validation failed: The file is not a valid DEB file. Detected type: $file_type." @@ -144,14 +148,6 @@ jobs: - name: Install cyan run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip - - name: Download YouTube - id: download_youtube - run: wget "${{ inputs.ipa_url }}" --no-verbose -O ${{ github.workspace }}/youtube.ipa - - - name: Download YouTube Plus - id: download_ytp - run: wget "${{ inputs.tweak_url }}" --no-verbose -O ${{ github.workspace }}/ytplus.deb - - name: Clone Open in YouTube (Safari extension) run: | git clone --quiet -n --depth=1 --filter=tree:0 https://github.com/CokePokes/YoutubeExtensions/ @@ -171,6 +167,12 @@ jobs: cd $THEOS/include git clone --quiet --depth=1 https://github.com/PoomSmart/YouTubeHeader.git fi + + if [ "${{ inputs.enable_demc }}" = "true" ]; then + echo "Copying YouTubeHeader to YTHeaders..." + rm -rf "$THEOS/include/YTHeaders" + cp -r "$THEOS/include/YouTubeHeader" "$THEOS/include/YTHeaders" + fi env: THEOS: ${{ github.workspace }}/theos @@ -308,6 +310,7 @@ jobs: - name: Upload to GitHub Releases uses: softprops/action-gh-release@v2.0.1 with: + tag_name: ytp-beta-${{ github.run_number }} name: YouTubePlus Beta (${{ github.run_number }}) files: YouTubePlus_Beta.ipa draft: true diff --git a/README.md b/README.md index 0b4971c..a66f2c8 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Review by [@qbap](https://github.com/qbap) on ONE Jailbreak: https://onejailbrea