From d08ddbf464b86fe6e65b67c8effaee0d9e6c45d1 Mon Sep 17 00:00:00 2001 From: Dan <38832025+dayanch96@users.noreply.github.com> Date: Thu, 30 Jan 2025 02:18:01 +0300 Subject: [PATCH] cache, bundle id, display name, psheader - Switches to major cache version - Adds bundleID and display name change support - Adds PSHeader submodule - Removes app extensions --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++-- .github/workflows/ytp_beta.yml | 30 ++++++++++++++++++++++++++++-- README.md | 4 ++-- 3 files changed, 58 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3585295..8405659 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,6 +46,18 @@ on: required: true type: string + display_name: + description: "App Name (Optional)" + default: "YouTube" + required: true + type: string + + bundle_id: + description: "BundleID (Optional)" + default: "com.google.ios.youtube" + required: true + type: string + info_note: description: "TIP: Learn more about integrations in the README via the link below" default: "https://github.com/dayanch96/YTLite#tweak-integration-details" @@ -91,7 +103,7 @@ jobs: - name: Cache Theos id: theos - uses: actions/cache@v4.0.1 + uses: actions/cache@v4 env: cache-name: theos_cache_67db2ab with: @@ -154,6 +166,20 @@ jobs: env: THEOS: ${{ github.workspace }}/theos + - name: Clone PSHeader + run: | + if [ -d "$THEOS/include/PSHeader" ]; then + echo "PSHeader exists. Pulling latest changes..." + cd $THEOS/include/PSHeader + git pull + else + echo "PSHeader does not exist. Cloning repository..." + cd $THEOS/include + git clone --quiet --depth=1 https://github.com/PoomSmart/PSHeader.git + fi + env: + THEOS: ${{ github.workspace }}/theos + - name: Clone YouPiP if: ${{ inputs.enable_youpip }} run: | @@ -269,7 +295,7 @@ jobs: fi done - cyan -i youtube.ipa -o YouTubePlus_${{ inputs.tweak_version }}.ipa -uwf $tweaks + cyan -i youtube.ipa -o YouTubePlus_${{ inputs.tweak_version }}.ipa -uwef $tweaks -n "${{ inputs.display_name }}" -b ${{ inputs.bundle_id }} - name: Upload to GitHub Releases uses: softprops/action-gh-release@v2.0.1 diff --git a/.github/workflows/ytp_beta.yml b/.github/workflows/ytp_beta.yml index 4c2bc00..e34c9de 100644 --- a/.github/workflows/ytp_beta.yml +++ b/.github/workflows/ytp_beta.yml @@ -46,6 +46,18 @@ on: required: true type: string + display_name: + description: "App Name (Optional)" + default: "YouTube" + required: true + type: string + + bundle_id: + description: "BundleID (Optional)" + default: "com.google.ios.youtube" + required: true + type: string + info_note: description: "TIP: Learn more about integrations in the README via the link below" default: "https://github.com/dayanch96/YTLite#tweak-integration-details" @@ -101,7 +113,7 @@ jobs: - name: Cache Theos id: theos - uses: actions/cache@v4.0.1 + uses: actions/cache@v4 env: cache-name: theos_cache_67db2ab with: @@ -162,6 +174,20 @@ jobs: env: THEOS: ${{ github.workspace }}/theos + - name: Clone PSHeader + run: | + if [ -d "$THEOS/include/PSHeader" ]; then + echo "PSHeader exists. Pulling latest changes..." + cd $THEOS/include/PSHeader + git pull + else + echo "PSHeader does not exist. Cloning repository..." + cd $THEOS/include + git clone --quiet --depth=1 https://github.com/PoomSmart/PSHeader.git + fi + env: + THEOS: ${{ github.workspace }}/theos + - name: Clone YouPiP if: ${{ inputs.enable_youpip }} run: | @@ -277,7 +303,7 @@ jobs: fi done - cyan -i youtube.ipa -o YouTubePlus_Beta.ipa -uwf $tweaks + cyan -i youtube.ipa -o YouTubePlus_Beta.ipa -uwef $tweaks -n "${{ inputs.display_name }}" -b ${{ inputs.bundle_id }} - name: Upload to GitHub Releases uses: softprops/action-gh-release@v2.0.1 diff --git a/README.md b/README.md index 56d6fc1..0b4971c 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ 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.
  • 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).
  • +
  • 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.)
  • @@ -81,7 +81,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.
  • -
  • Upload your beta tweak file to a file provider and paste direct link to the URL to the YouTube Plus tweak file 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.
  • 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.)