Skip to content

Commit 4aef04e

Browse files
authored
Add files via upload
1 parent f273a04 commit 4aef04e

1 file changed

Lines changed: 350 additions & 0 deletions

File tree

Lines changed: 350 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,350 @@
1+
name: Create YouTube Plus app [Custom w/ full YTUHD]
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
7+
enable_tweaks:
8+
description: "Integrate all tweaks"
9+
type: boolean
10+
required: true
11+
default: true
12+
13+
ipa_url:
14+
description: "URL to the decrypted IPA file"
15+
default: ""
16+
required: true
17+
type: string
18+
19+
tweak_version:
20+
description: "The version of the tweak to use. Enter the version manually from dayanch96/YTLite/releases or leave default"
21+
default: "5.2b4"
22+
required: true
23+
type: string
24+
25+
display_name:
26+
description: "App Name (Optional)"
27+
default: "YouTube"
28+
required: true
29+
type: string
30+
31+
bundle_id:
32+
description: "BundleID (Optional)"
33+
default: "com.google.ios.youtube"
34+
required: true
35+
type: string
36+
37+
38+
concurrency:
39+
group: ${{ github.workflow }}-${{ github.ref }}
40+
cancel-in-progress: true
41+
42+
jobs:
43+
build:
44+
name:
45+
runs-on: macos-latest
46+
permissions:
47+
contents: write
48+
49+
steps:
50+
- name: Checkout Main
51+
uses: actions/checkout@v4.1.1
52+
with:
53+
path: main
54+
submodules: recursive
55+
56+
- name: Hide sensitive inputs
57+
uses: levibostian/action-hide-sensitive-inputs@v1
58+
with:
59+
exclude_inputs: bundle_id,display_name,info_note,tweak_version
60+
61+
- name: Download and validate IPA
62+
run: |
63+
wget "${{ inputs.ipa_url }}" --no-verbose -O ${{ github.workspace }}/youtube.ipa
64+
65+
file_type=$(file --mime-type -b ${{ github.workspace }}/youtube.ipa)
66+
67+
if [[ "$file_type" != "application/x-ios-app" && "$file_type" != "application/zip" ]]; then
68+
echo "::error::Validation failed: The downloaded file is not a valid IPA. Detected type: $file_type."
69+
exit 1
70+
fi
71+
72+
- name: Install Dependencies
73+
run: brew install make ldid
74+
75+
- name: Set PATH environment variable
76+
run: echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH
77+
78+
- name: Cache Theos
79+
if: ${{ inputs.enable_tweaks }}
80+
id: theos
81+
uses: actions/cache@v4
82+
env:
83+
cache-name: theos_cache_67db2ab
84+
with:
85+
path: theos/
86+
key: ${{ env.cache-name }}
87+
restore-keys: ${{ env.cache-name }}
88+
89+
- name: Setup Theos
90+
if: ${{ inputs.enable_tweaks && steps.theos.outputs.cache-hit != 'true' }}
91+
uses: actions/checkout@v4.1.7
92+
with:
93+
repository: theos/theos
94+
ref: 67db2ab8d950910161730de77c322658ea3e6b44
95+
path: ${{ github.workspace }}/theos
96+
submodules: recursive
97+
98+
- name: Download iOS SDK
99+
if: ${{ inputs.enable_tweaks && steps.theos.outputs.cache-hit != 'true' }}
100+
run: |
101+
git clone --quiet -n --depth=1 --filter=tree:0 https://github.com/theos/sdks/
102+
cd sdks
103+
git sparse-checkout set --no-cone iPhoneOS16.5.sdk
104+
git checkout
105+
mv *.sdk $THEOS/sdks
106+
env:
107+
THEOS: ${{ github.workspace }}/theos
108+
109+
- name: Install cyan
110+
run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
111+
112+
- name: Download YouTube Plus
113+
id: download_ytp
114+
run: |
115+
deb_url="https://github.com/dayanch96/YTLite/releases/download/v${{ inputs.tweak_version }}/com.dvntm.ytlite_${{ inputs.tweak_version }}_iphoneos-arm.deb"
116+
wget "$deb_url" --no-verbose -O ${{ github.workspace }}/ytplus.deb
117+
118+
- name: Clone Open in YouTube (Safari extension)
119+
run: |
120+
git clone --quiet -n --depth=1 --filter=tree:0 https://github.com/CokePokes/YoutubeExtensions/
121+
cd YoutubeExtensions
122+
git sparse-checkout set --no-cone OpenYoutubeSafariExtension.appex
123+
git checkout
124+
mv *.appex ${{ github.workspace }}
125+
126+
- name: Clone YouTubeHeader
127+
if: ${{ inputs.enable_tweaks }}
128+
run: |
129+
if [ -d "$THEOS/include/YouTubeHeader" ]; then
130+
echo "YouTubeHeader exists. Pulling latest changes..."
131+
cd $THEOS/include/YouTubeHeader
132+
git pull
133+
else
134+
echo "YouTubeHeader does not exist. Cloning repository..."
135+
cd $THEOS/include
136+
git clone --quiet --depth=1 https://github.com/PoomSmart/YouTubeHeader.git
137+
fi
138+
139+
if [ "${{ inputs.enable_demc }}" = "true" ]; then
140+
echo "Copying YouTubeHeader to YTHeaders..."
141+
rm -rf "$THEOS/include/YTHeaders"
142+
cp -r "$THEOS/include/YouTubeHeader" "$THEOS/include/YTHeaders"
143+
fi
144+
env:
145+
THEOS: ${{ github.workspace }}/theos
146+
147+
- name: Clone PSHeader
148+
if: ${{ inputs.enable_tweaks }}
149+
run: |
150+
if [ -d "$THEOS/include/PSHeader" ]; then
151+
echo "PSHeader exists. Pulling latest changes..."
152+
cd $THEOS/include/PSHeader
153+
git pull
154+
else
155+
echo "PSHeader does not exist. Cloning repository..."
156+
cd $THEOS/include
157+
git clone --quiet --depth=1 https://github.com/PoomSmart/PSHeader.git
158+
fi
159+
env:
160+
THEOS: ${{ github.workspace }}/theos
161+
162+
- name: Clone YouPiP
163+
if: ${{ inputs.enable_tweaks }}
164+
run: |
165+
cd ${{ github.workspace }}
166+
git clone --quiet --depth=1 https://github.com/PoomSmart/YouPiP.git
167+
168+
- name: Clone YTUHD
169+
if: ${{ inputs.enable_tweaks }}
170+
run: |
171+
cd ${{ github.workspace }}
172+
git clone --quiet --depth=1 https://github.com/PoomSmart/YTUHD.git
173+
174+
175+
- name: Clone Return-YouTube-Dislikes
176+
if: ${{ inputs.enable_tweaks }}
177+
run: |
178+
cd ${{ github.workspace }}
179+
git clone --quiet --depth=1 https://github.com/PoomSmart/Return-YouTube-Dislikes.git
180+
181+
- name: Clone YouGroupSettings
182+
if: ${{ inputs.enable_tweaks }}
183+
run: |
184+
cd ${{ github.workspace }}
185+
git clone --quiet --depth=1 https://github.com/PoomSmart/YouGroupSettings.git
186+
187+
- name: Clone YouQuality
188+
if: ${{ inputs.enable_tweaks }}
189+
run: |
190+
cd ${{ github.workspace }}
191+
git clone --quiet --depth=1 https://github.com/PoomSmart/YouQuality.git
192+
193+
- name: Clone YTVideoOverlay
194+
if: ${{ inputs.enable_tweaks }}
195+
run: |
196+
cd ${{ github.workspace }}
197+
git clone --quiet --depth=1 https://github.com/PoomSmart/YTVideoOverlay.git
198+
199+
- name: Clone DontEatMyContent
200+
if: ${{ inputs.enable_tweaks }}
201+
run: |
202+
cd ${{ github.workspace }}
203+
git clone --quiet --depth=1 --recurse-submodules https://github.com/therealFoxster/DontEatMyContent.git
204+
205+
- name: Clone YTABConfig
206+
if: ${{ inputs.enable_tweaks }}
207+
run: |
208+
cd ${{ github.workspace }}
209+
git clone --quiet --depth=1 https://github.com/PoomSmart/YTABConfig
210+
211+
- name: Clone YouMute
212+
if: ${{ inputs.enable_tweaks }}
213+
run: |
214+
cd ${{ github.workspace }}
215+
git clone --quiet --depth=1 https://github.com/PoomSmart/YouMute
216+
217+
- name: Clone YTVideoErrorAlert
218+
if: ${{ inputs.enable_tweaks }}
219+
run: |
220+
cd ${{ github.workspace }}
221+
git clone --quiet --depth=1 https://github.com/PoomSmart/YTVideoErrorAlert
222+
223+
- name: Clone Gonerino
224+
if: ${{ inputs.enable_tweaks }}
225+
run: |
226+
cd ${{ github.workspace }}
227+
git clone --quiet --depth=1 https://github.com/castdrian/Gonerino
228+
229+
- name: Build YouPiP
230+
if: ${{ inputs.enable_tweaks }}
231+
run: |
232+
cd ${{ github.workspace }}/YouPiP
233+
make clean package DEBUG=0 FINALPACKAGE=1
234+
mv packages/*.deb ${{ github.workspace }}/youpip.deb
235+
env:
236+
THEOS: ${{ github.workspace }}/theos
237+
238+
- name: Build YTUHD
239+
if: ${{ inputs.enable_tweaks }}
240+
run: |
241+
cd ${{ github.workspace }}/YTUHD
242+
make clean package DEBUG=0 FINALPACKAGE=1
243+
mv packages/*.deb ${{ github.workspace }}/ytuhd.deb
244+
env:
245+
THEOS: ${{ github.workspace }}/theos
246+
247+
- name: Build Return-YouTube-Dislikes
248+
if: ${{ inputs.enable_tweaks }}
249+
run: |
250+
cd ${{ github.workspace }}/Return-YouTube-Dislikes
251+
make clean package DEBUG=0 FINALPACKAGE=1
252+
mv packages/*.deb ${{ github.workspace }}/ryd.deb
253+
env:
254+
THEOS: ${{ github.workspace }}/theos
255+
256+
- name: Build YouGroupSettings
257+
if: ${{ inputs.enable_tweaks }}
258+
run: |
259+
cd ${{ github.workspace }}/YouGroupSettings
260+
make clean package DEBUG=0 FINALPACKAGE=1
261+
mv packages/*.deb ${{ github.workspace }}/ygs.deb
262+
env:
263+
THEOS: ${{ github.workspace }}/theos
264+
265+
- name: Build YouQuality
266+
if: ${{ inputs.enable_tweaks }}
267+
run: |
268+
cd ${{ github.workspace }}/YouQuality
269+
make clean package DEBUG=0 FINALPACKAGE=1
270+
mv packages/*.deb ${{ github.workspace }}/yq.deb
271+
env:
272+
THEOS: ${{ github.workspace }}/theos
273+
274+
- name: Build YTVideoOverlay
275+
if: ${{ inputs.enable_tweaks }}
276+
run: |
277+
cd ${{ github.workspace }}/YTVideoOverlay
278+
make clean package DEBUG=0 FINALPACKAGE=1
279+
mv packages/*.deb ${{ github.workspace }}/ytvo.deb
280+
env:
281+
THEOS: ${{ github.workspace }}/theos
282+
283+
- name: Build DontEatMyContent
284+
if: ${{ inputs.enable_tweaks }}
285+
run: |
286+
cd ${{ github.workspace }}/DontEatMyContent
287+
make clean package DEBUG=0 FINALPACKAGE=1
288+
mv packages/*.deb ${{ github.workspace }}/demc.deb
289+
env:
290+
THEOS: ${{ github.workspace }}/theos
291+
292+
- name: Build YTABConfig
293+
if: ${{ inputs.enable_tweaks }}
294+
run: |
295+
cd ${{ github.workspace }}/YTABConfig
296+
make clean package DEBUG=0 FINALPACKAGE=1
297+
mv packages/*.deb ${{ github.workspace }}/ytab.deb
298+
env:
299+
THEOS: ${{ github.workspace }}/theos
300+
301+
- name: Build YouMute
302+
if: ${{ inputs.enable_tweaks }}
303+
run: |
304+
cd ${{ github.workspace }}/YouMute
305+
make clean package DEBUG=0 FINALPACKAGE=1
306+
mv packages/*.deb ${{ github.workspace }}/ymute.deb
307+
env:
308+
THEOS: ${{ github.workspace }}/theos
309+
310+
- name: Build YTVideoErrorAlert
311+
if: ${{ inputs.enable_tweaks }}
312+
run: |
313+
cd ${{ github.workspace }}/YTVideoErrorAlert
314+
make clean package DEBUG=0 FINALPACKAGE=1
315+
mv packages/*.deb ${{ github.workspace }}/ytvea.deb
316+
env:
317+
THEOS: ${{ github.workspace }}/theos
318+
319+
- name: Build Gonerino
320+
if: ${{ inputs.enable_tweaks }}
321+
run: |
322+
cd ${{ github.workspace }}/Gonerino
323+
make clean package DEBUG=0 FINALPACKAGE=1
324+
mv packages/*.deb ${{ github.workspace }}/gon.deb
325+
env:
326+
THEOS: ${{ github.workspace }}/theos
327+
328+
- name: Inject tweaks into IPA
329+
run: |
330+
tweaks="ytplus.deb OpenYoutubeSafariExtension.appex"
331+
332+
for f in *.deb; do
333+
if [ -f "$f" ]; then
334+
tweaks="$tweaks $f"
335+
fi
336+
done
337+
338+
cyan -i youtube.ipa -o YouTubePlus_${{ inputs.tweak_version }}.ipa -uwef $tweaks -n "${{ inputs.display_name }}" -b ${{ inputs.bundle_id }}
339+
340+
- name: Upload to GitHub Releases
341+
uses: softprops/action-gh-release@v2.0.1
342+
with:
343+
tag_name: ytp-${{ github.run_number }}
344+
name: YouTubePlus v${{ inputs.tweak_version }} (${{ github.run_number }})
345+
files: YouTubePlus_${{ inputs.tweak_version }}.ipa
346+
draft: true
347+
348+
- name: Output Release URL
349+
run: |
350+
echo "::notice::Release available at: https://github.com/${{ github.repository }}/releases"

0 commit comments

Comments
 (0)