Build and Release YTMusicUltimate #1
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
name: Build and Release YTMusicUltimate | |
on: | |
workflow_dispatch: | |
inputs: | |
decrypted_youtube_music_url: | |
description: "The direct URL to the decrypted YouTube Music ipa (Upload a decrypted .ipa file to Dropbox and input its URL here.)" | |
default: "" | |
required: true | |
type: string | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build YTMusicUltimate | |
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: Setup Theos | |
uses: actions/[email protected] | |
with: | |
repository: theos/theos | |
ref: 3da31488281ecf4394d10302d2629607f4a1aa07 | |
path: theos | |
submodules: recursive | |
- name: SDK Caching | |
id: SDK | |
uses: actions/[email protected] | |
env: | |
cache-name: iOS-16.5-SDK | |
with: | |
path: theos/sdks/ | |
key: ${{ env.cache-name }} | |
restore-keys: ${{ env.cache-name }} | |
- name: Download iOS SDK | |
if: steps.SDK.outputs.cache-hit != 'true' | |
run: | | |
git clone --quiet -n --depth=1 --filter=tree:0 https://github.com/theos/sdks/ | |
cd sdks | |
git sparse-checkout set --no-cone iPhoneOS16.5.sdk | |
git checkout | |
mv *.sdk $THEOS/sdks | |
env: | |
THEOS: ${{ github.workspace }}/theos | |
- name: Prepare YouTube Music iPA | |
id: prepare_youtube_music | |
run: | | |
wget "$YOUTUBE_MUSIC_URL" --no-verbose -O main/YouTubeMusic.ipa | |
env: | |
YOUTUBE_MUSIC_URL: ${{ inputs.decrypted_youtube_music_url }} | |
- name: Build Tweak for Sideloading | |
id: build_package | |
run: | | |
cd ${{ github.workspace }}/main | |
make clean package SIDELOADING=1 | |
env: | |
THEOS: ${{ github.workspace }}/theos | |
- name: Inject tweak into provided IPA | |
run: | | |
cd ${{ github.workspace }}/main/packages | |
tweakName=$(ls) | |
cd ${{ github.workspace }}/main | |
pip3 install --force-reinstall lief git+https://github.com/asdfzxcvbn/pyzule-rw.git#egg=cyan | |
cyan -i YouTubeMusic.ipa -o packages/YTMusicUltimate.ipa -uwsf packages/$tweakName | |
- name: Create Release | |
id: create_release | |
uses: softprops/[email protected] | |
with: | |
tag_name: YTMusicUltimate-v${{ github.run_number }} | |
name: YTMusicUltimate-v${{ github.run_number }} | |
files: main/packages/*.ipa | |
draft: true |