mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
120 lines
4.2 KiB
YAML
120 lines
4.2 KiB
YAML
# Original idea by @ISnackable. Thanks to him for handling the hardest parts!
|
|
# https://github.com/ISnackable/CercubePlus/blob/main/.github/workflows/Build.yml
|
|
|
|
name: Build and Release uYouPlus
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
uyou_version:
|
|
description: "The version of uYou"
|
|
default: "2.1"
|
|
required: true
|
|
type: string
|
|
decrypted_youtube_url:
|
|
description: "The direct URL to the decrypted YouTube ipa"
|
|
default: "https://27man-my.sharepoint.com/:u:/g/personal/qn____27man_onmicrosoft_com/EfZLHsAs_CpGtyzPhAi7Dy8BtGjTxYif-DAmW0-rxzE4sA?download=1"
|
|
required: true
|
|
type: string
|
|
youtube_version:
|
|
description: "The version of YouTube"
|
|
default: ""
|
|
required: true
|
|
type: string
|
|
create_release:
|
|
description: "Create a draft release"
|
|
default: false
|
|
required: false
|
|
type: boolean
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build uYouPlus
|
|
runs-on: macos-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Checkout Main
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: main
|
|
submodules: recursive
|
|
|
|
- name: Install Dependencies
|
|
run: brew install ldid dpkg
|
|
|
|
- name: Setup Theos
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: theos/theos
|
|
ref: master
|
|
path: theos
|
|
submodules: recursive
|
|
|
|
- name: Download iOS 15.5 SDK
|
|
run: |
|
|
svn checkout -q https://github.com/chrisharper22/sdks/trunk/iPhoneOS15.5.sdk
|
|
mv *.sdk $THEOS/sdks
|
|
env:
|
|
THEOS: ${{ github.workspace }}/theos
|
|
|
|
- name: Setup Theos Jailed
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: qnblackcat/theos-jailed
|
|
ref: master
|
|
path: theos-jailed
|
|
submodules: recursive
|
|
|
|
- name: Install Theos Jailed
|
|
run: |
|
|
./theos-jailed/install
|
|
env:
|
|
THEOS: ${{ github.workspace }}/theos
|
|
|
|
- name: Download uYou & prepare YouTube iPA
|
|
run: |
|
|
curl "https://raw.githubusercontent.com/Muirey03/RemoteLog/master/RemoteLog.h" --output "$THEOS/include/RemoteLog.h"
|
|
curl "https://miro92.com/repo/debs/com.miro.uyou_${{ env.UYOU_VERSION }}_iphoneos-arm.deb" --output "./main/Tweaks/uYou/com.miro.uyou_${{ env.UYOU_VERSION }}_iphoneos-arm.deb"
|
|
wget "$YOUTUBE_URL" --no-verbose -O ./main/YouTube.ipa
|
|
dpkg-deb -x "./main/Tweaks/uYou/com.miro.uyou_${{ env.UYOU_VERSION }}_iphoneos-arm.deb" ./main/Tweaks/uYou/
|
|
unzip -q ./main/YouTube.ipa -d ./main/tmp
|
|
rm -rf ./main/tmp/Payload/YouTube.app/PlugIns/*
|
|
cp -R ./main/Extensions/*.appex ./main/tmp/Payload/YouTube.app/PlugIns
|
|
|
|
env:
|
|
THEOS: ${{ github.workspace }}/theos
|
|
UYOU_VERSION: ${{ inputs.uyou_version }}
|
|
YOUTUBE_URL: ${{ inputs.decrypted_youtube_url }}
|
|
|
|
- name: Fix compiling && Build Package
|
|
id: build_package
|
|
run: |
|
|
cd ${{ github.workspace }}/main
|
|
(cd ${{ github.workspace }}/main/Tweaks/YouPiP && sed -i '' "14s/$/ AVFoundation UIKit/" Makefile)
|
|
make package FINALPACKAGE=1
|
|
(mv "packages/$(ls -t packages | head -n1)" "packages/uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}.ipa")
|
|
echo "package=$(ls -t packages | head -n1)" >>$GITHUB_OUTPUT
|
|
env:
|
|
THEOS: ${{ github.workspace }}/theos
|
|
UYOU_VERSION: ${{ inputs.uyou_version }}
|
|
YOUTUBE_VERSION: ${{ inputs.youtube_version }}
|
|
|
|
- name: Gh Release
|
|
id: create_release
|
|
uses: softprops/action-gh-release@v0.1.14
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
UYOU_VERSION: ${{ inputs.uyou_version }}
|
|
YOUTUBE_VERSION: ${{ inputs.youtube_version }}
|
|
DRAFT: ${{ inputs.create_release }}
|
|
with:
|
|
tag_name: v${{ env.YOUTUBE_VERSION }}-${{ env.UYOU_VERSION }}-(${{ github.run_number }})
|
|
name: v${{ env.YOUTUBE_VERSION }}-${{ env.UYOU_VERSION }}-(${{ github.run_number }})
|
|
files: ./main/packages/*.ipa
|
|
draft: ${{ env.create_release }}
|