Create ytp_link_tweaks.yml
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
name: '[LINK] YouTube Plus + YouPiP, YTUHD and RYD'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ipa_url:
|
||||
description: "Direct link to the decrypted IPA file (not to the web-page)"
|
||||
default: ""
|
||||
required: true
|
||||
type: string
|
||||
|
||||
tweak_url:
|
||||
description: "Direct link to the YouTube Plus tweak file (not to the web-page)"
|
||||
default: ""
|
||||
required: true
|
||||
type: string
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name:
|
||||
runs-on: macos-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout Main
|
||||
uses: actions/checkout@v4.1.1
|
||||
with:
|
||||
path: main
|
||||
submodules: recursive
|
||||
|
||||
- name: Install Dependencies
|
||||
run: brew install make ldid
|
||||
|
||||
- name: Set PATH environment variable
|
||||
run: echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH
|
||||
|
||||
- name: Cache Theos
|
||||
id: theos
|
||||
uses: actions/cache@v4.0.1
|
||||
env:
|
||||
cache-name: theos_cache_67db2ab
|
||||
with:
|
||||
path: theos/
|
||||
key: ${{ env.cache-name }}
|
||||
restore-keys: ${{ env.cache-name }}
|
||||
|
||||
- name: Setup Theos
|
||||
if: steps.theos.outputs.cache-hit != 'true'
|
||||
uses: actions/checkout@v4.1.7
|
||||
with:
|
||||
repository: theos/theos
|
||||
ref: 67db2ab8d950910161730de77c322658ea3e6b44
|
||||
path: ${{ github.workspace }}/theos
|
||||
submodules: recursive
|
||||
|
||||
- name: Download iOS SDK
|
||||
if: steps.theos.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: Install cyan
|
||||
run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
|
||||
|
||||
- name: Hide sensitive inputs
|
||||
uses: levibostian/action-hide-sensitive-inputs@v1
|
||||
|
||||
- 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: wget "${{ inputs.tweak_url }}" --no-verbose -O ${{ github.workspace }}/ytplus.deb
|
||||
|
||||
- name: Clone Open in YouTube (Safari extension)
|
||||
run: |
|
||||
git clone --quiet -n --depth=1 --filter=tree:0 https://github.com/CokePokes/YoutubeExtensions/
|
||||
cd YoutubeExtensions
|
||||
git sparse-checkout set --no-cone OpenYoutubeSafariExtension.appex
|
||||
git checkout
|
||||
mv *.appex ${{ github.workspace }}
|
||||
|
||||
- name: Clone YouTubeHeader
|
||||
run: |
|
||||
if [ -d "$THEOS/include/YouTubeHeader" ]; then
|
||||
echo "YouTubeHeader exists. Pulling latest changes..."
|
||||
cd $THEOS/include/YouTubeHeader
|
||||
git pull
|
||||
else
|
||||
echo "YouTubeHeader does not exist. Cloning repository..."
|
||||
cd $THEOS/include
|
||||
git clone --quiet --depth=1 https://github.com/PoomSmart/YouTubeHeader.git
|
||||
fi
|
||||
env:
|
||||
THEOS: ${{ github.workspace }}/theos
|
||||
|
||||
- name: Clone YouPiP
|
||||
run: |
|
||||
cd ${{ github.workspace }}
|
||||
git clone --quiet --depth=1 https://github.com/PoomSmart/YouPiP.git
|
||||
|
||||
- name: Clone YTUHD
|
||||
run: |
|
||||
cd ${{ github.workspace }}
|
||||
git clone --quiet --depth=1 https://github.com/PoomSmart/YTUHD.git
|
||||
|
||||
- name: Clone Return-YouTube-Dislikes
|
||||
run: |
|
||||
cd ${{ github.workspace }}
|
||||
git clone --quiet --depth=1 https://github.com/PoomSmart/Return-YouTube-Dislikes.git
|
||||
|
||||
- name: Build YouPiP
|
||||
run: |
|
||||
cd ${{ github.workspace }}/YouPiP
|
||||
make clean package DEBUG=0 FINALPACKAGE=1
|
||||
mv packages/*.deb ${{ github.workspace }}/youpip.deb
|
||||
env:
|
||||
THEOS: ${{ github.workspace }}/theos
|
||||
|
||||
- name: Build YTUHD
|
||||
run: |
|
||||
cd ${{ github.workspace }}/YTUHD
|
||||
make clean package DEBUG=0 FINALPACKAGE=1
|
||||
mv packages/*.deb ${{ github.workspace }}/ytuhd.deb
|
||||
env:
|
||||
THEOS: ${{ github.workspace }}/theos
|
||||
|
||||
- name: Build Return-YouTube-Dislikes
|
||||
run: |
|
||||
cd ${{ github.workspace }}/Return-YouTube-Dislikes
|
||||
make clean package DEBUG=0 FINALPACKAGE=1
|
||||
mv packages/*.deb ${{ github.workspace }}/ryd.deb
|
||||
env:
|
||||
THEOS: ${{ github.workspace }}/theos
|
||||
|
||||
- name: Inject tweaks into IPA
|
||||
run: |
|
||||
cyan -i youtube.ipa -o YTPlus_Tweaks.ipa \
|
||||
-uwf ytplus.deb OpenYoutubeSafariExtension.appex youpip.deb ytuhd.deb ryd.deb
|
||||
|
||||
- name: Upload to GitHub Releases
|
||||
uses: softprops/action-gh-release@v2.0.1
|
||||
with:
|
||||
tag_name: v${{ github.run_number }}
|
||||
name: YouTubePlus + Tweaks (${{ github.run_number }})
|
||||
files: YTPlus_Tweaks.ipa
|
||||
draft: true
|
||||
Reference in New Issue
Block a user