mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 03:32:08 +00:00
Update buildapp.yml to upload Artifact
This commit is contained in:
parent
573dfa1d67
commit
8e4293f7a1
1 changed files with 16 additions and 31 deletions
47
.github/workflows/buildapp.yml
vendored
47
.github/workflows/buildapp.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
# Original idea by @ISnackable. Thanks to him for handling the hardest parts!
|
# Original idea by @ISnackable. Thanks to him for handling the hardest parts!
|
||||||
# https://github.com/ISnackable/CercubePlus/blob/main/.github/workflows/Build.yml
|
# https://github.com/ISnackable/CercubePlus/blob/main/.github/workflows/Build.yml
|
||||||
|
|
||||||
name: Build and Release uYouPlus
|
name: Build uYouPlus Artifact
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
@ -32,9 +32,6 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set Env
|
|
||||||
run: echo "workspace=$GITHUB_WORKSPACE" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Checkout Main
|
- name: Checkout Main
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -60,7 +57,7 @@ jobs:
|
||||||
mv $TMP/sdks-main/*.sdk $THEOS/sdks
|
mv $TMP/sdks-main/*.sdk $THEOS/sdks
|
||||||
rm -r main.zip $TMP
|
rm -r main.zip $TMP
|
||||||
env:
|
env:
|
||||||
THEOS: ${{ env.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
|
||||||
- name: Setup Theos Jailed
|
- name: Setup Theos Jailed
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
@ -74,11 +71,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
./theos-jailed/install
|
./theos-jailed/install
|
||||||
env:
|
env:
|
||||||
THEOS: ${{ env.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
|
||||||
- name: Download Dylibs
|
- name: Download Dylibs
|
||||||
run: |
|
run: |
|
||||||
curl "https://raw.githubusercontent.com/Muirey03/RemoteLog/master/RemoteLog.h" --output "$THEOS/include/RemoteLog.h"
|
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"
|
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
|
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/
|
dpkg-deb -x "./main/Tweaks/uYou/com.miro.uyou_${{ env.UYOU_VERSION }}_iphoneos-arm.deb" ./main/Tweaks/uYou/
|
||||||
|
|
@ -87,42 +84,30 @@ jobs:
|
||||||
cp -R ./main/Extensions/*.appex ./main/tmp/Payload/YouTube.app/PlugIns
|
cp -R ./main/Extensions/*.appex ./main/tmp/Payload/YouTube.app/PlugIns
|
||||||
|
|
||||||
env:
|
env:
|
||||||
THEOS: ${{ env.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
YOUTUBE_URL: ${{ github.event.inputs.decrypted_youtube_url }}
|
YOUTUBE_URL: ${{ github.event.inputs.decrypted_youtube_url }}
|
||||||
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
|
||||||
|
|
||||||
- name: Fix compiling && Build Package
|
- name: Fix compiling && Build Package
|
||||||
id: build_package
|
id: build_package
|
||||||
run: |
|
run: |
|
||||||
cd ${{ env.workspace }}/main
|
cd ${{ github.workspace }}/main
|
||||||
(cd ${{ env.workspace }}/main/Tweaks/YouPiP && sed -i '' "14s#.*#YouPiP_FRAMEWORKS = AVKit AVFoundation UIKit#g" ./Makefile)
|
(cd ${{ github.workspace }}/main/Tweaks/YouPiP && sed -i '' "14s#.*#YouPiP_FRAMEWORKS = AVKit AVFoundation UIKit#g" ./Makefile)
|
||||||
make package FINALPACKAGE=1
|
make package FINALPACKAGE=1
|
||||||
|
(mv "packages/$(ls -t packages | head -n1)" "packages/uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}.ipa")
|
||||||
echo "::set-output name=package::$(ls -t packages | head -n1)"
|
echo "::set-output name=package::$(ls -t packages | head -n1)"
|
||||||
env:
|
env:
|
||||||
THEOS: ${{ env.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
|
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
||||||
|
|
||||||
- name: Create Release
|
- name: Upload Artifact
|
||||||
id: create_release
|
uses: actions/upload-artifact@v3
|
||||||
uses: actions/create-release@v1
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ env.YOUTUBE_VERSION }}-${{ env.UYOU_VERSION }}-(${{ github.run_number }})
|
name: uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}
|
||||||
release_name: v${{ env.YOUTUBE_VERSION }}-${{ env.UYOU_VERSION }}-(${{ github.run_number }})
|
path: ${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
|
||||||
draft: true
|
if-no-files-found: error
|
||||||
prerelease: false
|
|
||||||
|
|
||||||
- name: Upload Release Asset
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
|
||||||
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ${{ env.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
|
|
||||||
asset_name: uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}.ipa
|
|
||||||
asset_content_type: application/vnd.debian.binary-package
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue