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
  • Click the Run workflow button located on the right side.
  • Mark or unmark the tweaks you want to integrate. Learn more about them in the Tweak Integration Details section.
  • Prepare a decrypted .ipa file (we cannot provide this due to legal reasons), then upload it to a file provider (e.g., filebin.net, filemail.com, or Dropbox is recommended). Paste the URL of the decrypted IPA file in the provided field.
  • -
  • NOTE: Make sure to provide a direct download link to the file, not a link to a webpage. Otherwise, the process will fail.
  • +
  • NOTE: Make sure to provide a direct download link to the file, not a link to a webpage. Otherwise, the process will fail.
  • Enter the tweak version from the releases (the latest release is selected by default). You can also change the BundleID and Display Name if desired.
  • Make sure all inputs are correct, then click Run workflow to start the process.
  • Wait for the build to finish. You can download the YouTube Plus app from the releases section of your forked repo. (If you can't find the releases section, go to your forked repo and add /releases to the URL, i.e., github.com/user/YTLite/releases.)
  • @@ -82,12 +82,17 @@ Review by [@qbap](https://github.com/qbap) on ONE Jailbreak: https://onejailbrea
  • Mark or unmark the tweaks you want to integrate. Learn more about them in the Tweak Integration Details section.
  • Prepare a decrypted .ipa file (we cannot provide this due to legal reasons), then upload it to a file provider (e.g., filebin.net, filemail.com, or Dropbox is recommended). Paste the URL of the decrypted IPA file in the provided field.
  • Upload your beta tweak file to a file provider and paste direct link to the URL to the YouTube Plus tweak file field. You can also change the BundleID and Display Name if desired.
  • -
  • NOTE: Make sure to provide a direct download link to the file, not a link to a webpage. Otherwise, the process will fail.
  • +
  • NOTE: Make sure to provide a direct download link to the file, not a link to a webpage. Otherwise, the process will fail.
  • Make sure all inputs are correct, then click Run workflow to start the process.
  • Wait for the build to finish. You can download the YouTube Plus app from the releases section of your forked repo. (If you can't find the releases section, go to your forked repo and add /releases to the URL, i.e., github.com/user/YTLite/releases.)
  • +## Supported YouTube Version +
  • Latest confirmed: 20.29.3
  • +
  • Date tested: July 25, 2025
  • +
  • YouTube Plus: 5.2 beta 2
  • + ## Tweak Integration Details
    YouPiP