-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Create YouTube Plus app | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ipa_url: | ||
description: "The direct URL to the decrypted IPA file" | ||
default: "" | ||
required: true | ||
type: string | ||
|
||
tweak_version: | ||
description: "The version of the tweak to use. Enter the version manually from dayanch96/YTLite/releases or leave default" | ||
default: "5.0" | ||
required: true | ||
type: string | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: | ||
runs-on: macos-12 | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout Main | ||
uses: actions/[email protected] | ||
with: | ||
path: main | ||
submodules: recursive | ||
|
||
- name: Install Dependencies | ||
run: brew install ldid dpkg make coreutils | ||
|
||
- name: Set PATH environment variable | ||
run: echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH | ||
|
||
- name: Cache Azule | ||
id: azule_cache | ||
uses: actions/[email protected] | ||
env: | ||
cache-name: azule-cache | ||
with: | ||
path: ${{ github.workspace }}/Azule | ||
key: ${{ env.cache-name }} | ||
restore-keys: ${{ env.cache-name }} | ||
|
||
- name: Clone Azule Repository | ||
if: steps.azule_cache.outputs.cache-hit != 'true' | ||
run: | | ||
git clone https://github.com/Al4ise/Azule ${{ github.workspace }}/Azule | ||
- 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: | | ||
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: Inject tweak into IPA | ||
run: | | ||
cd ${{ github.workspace }} | ||
./Azule/azule -n YouTubePlus -i ${{ github.workspace }}/youtube.ipa -o ${{ github.workspace }} -f ${{ github.workspace }}/ytplus.deb | ||
- name: Remove the Watch folder | ||
run: | | ||
cd ${{ github.workspace }} | ||
mv YouTubePlus.ipa YouTubePlus.zip | ||
unzip -q YouTubePlus.zip | ||
cd Payload/Youtube.app | ||
rm -rf Watch | ||
cd ../.. | ||
zip -qr YouTubePlus.ipa Payload | ||
rm -rf Payload | ||
- name: Upload to GitHub Releases | ||
uses: softprops/[email protected] | ||
with: | ||
tag_name: v${{ github.run_number }} | ||
name: YouTubePlus-v${{ github.run_number }} | ||
files: YouTubePlus.ipa | ||
draft: true |