Skip to content

Build and Release YTMusicUltimate #1

Build and Release YTMusicUltimate

Build and Release YTMusicUltimate #1

Workflow file for this run

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/checkout@v4.1.1
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/checkout@v4.1.7
with:
repository: theos/theos
ref: 3da31488281ecf4394d10302d2629607f4a1aa07
path: theos
submodules: recursive
- name: SDK Caching
id: SDK
uses: actions/cache@v4.0.1
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/action-gh-release@v2.0.6
with:
tag_name: YTMusicUltimate-v${{ github.run_number }}
name: YTMusicUltimate-v${{ github.run_number }}
files: main/packages/*.ipa
draft: true