forked from dayanch96/YTMusicUltimate
-
Notifications
You must be signed in to change notification settings - Fork 1
98 lines (83 loc) · 2.81 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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-latest
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
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: Install Cyan
run: |
brew install pipx
pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
- name: Inject tweak into provided IPA
run: |
cd ${{ github.workspace }}/main/packages
tweakName=$(ls)
cd ${{ github.workspace }}/main
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