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