Skip to content

Commit

Permalink
Added option to change bundle id and app name to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
flanter21 committed Dec 26, 2024
1 parent b732529 commit db9c91f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Create YouTube Plus app
on:
workflow_dispatch:
inputs:

enable_youpip:
description: "Integrate YouPiP"
type: boolean
Expand Down Expand Up @@ -46,6 +45,18 @@ on:
required: true
type: string

bundle_id:
description: "Change the bundle id of the app"
default: "com.google.ios.youtube"
required: true
type: string

app_name:
description: "Change the name of the app"
default: "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"
Expand All @@ -58,7 +69,7 @@ concurrency:

jobs:
build:
name:
name:
runs-on: macos-latest
permissions:
contents: write
Expand Down Expand Up @@ -269,7 +280,7 @@ jobs:
fi
done
cyan -i youtube.ipa -o YouTubePlus_${{ inputs.tweak_version }}.ipa -uwf $tweaks
cyan -i youtube.ipa -b ${{ inputs.bundle_id }} -n "${{ inputs.app_name }" -o YouTubePlus_${{ inputs.tweak_version }}.ipa -uwf $tweaks
- name: Upload to GitHub Releases
uses: softprops/[email protected]
Expand All @@ -280,4 +291,4 @@ jobs:

- name: Output Release URL
run: |
echo "::notice::Release available at: https://github.com/${{ github.repository }}/releases"
echo "::notice::Release available at: https://github.com/${{ github.repository }}/releases"
21 changes: 16 additions & 5 deletions .github/workflows/ytp_beta.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: '[BETA] Create YouTube Plus app'
name: "[BETA] Create YouTube Plus app"

on:
workflow_dispatch:
inputs:

enable_youpip:
description: "Integrate YouPiP"
type: boolean
Expand Down Expand Up @@ -46,6 +45,18 @@ on:
required: true
type: string

bundle_id:
description: "Change the bundle id of the app"
default: "com.google.ios.youtube"
required: true
type: string

app_name:
description: "Change the name of the app"
default: "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"
Expand All @@ -58,7 +69,7 @@ concurrency:

jobs:
build:
name:
name:
runs-on: macos-latest
permissions:
contents: write
Expand Down Expand Up @@ -277,7 +288,7 @@ jobs:
fi
done
cyan -i youtube.ipa -o YouTubePlus_Beta.ipa -uwf $tweaks
cyan -i youtube.ipa -b ${{ inputs.bundle_id }} -n "${{ inputs.app_name }" -o YouTubePlus_Beta.ipa -uwf $tweaks
- name: Upload to GitHub Releases
uses: softprops/[email protected]
Expand All @@ -288,4 +299,4 @@ jobs:

- name: Output Release URL
run: |
echo "::notice::Release available at: https://github.com/${{ github.repository }}/releases"
echo "::notice::Release available at: https://github.com/${{ github.repository }}/releases"

0 comments on commit db9c91f

Please sign in to comment.