mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Merge pull request #913 from aaronliu0130/main
fix(buildapp): Download IPA before seting up Theos
This commit is contained in:
commit
0b4ca1ff9d
1 changed files with 9 additions and 12 deletions
21
.github/workflows/buildapp.yml
vendored
21
.github/workflows/buildapp.yml
vendored
|
|
@ -59,6 +59,13 @@ jobs:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Hash YT IPA url and download it
|
||||||
|
run: |
|
||||||
|
URL_YT="$(jq -r '.inputs.decrypted_youtube_url' $GITHUB_EVENT_PATH)"
|
||||||
|
echo ::add-mask::$URL_YT
|
||||||
|
echo URL_YT=$URL_YT >> $GITHUB_ENV
|
||||||
|
wget "$URL_YT" --quiet --no-verbose -O YouTube.ipa
|
||||||
|
|
||||||
- name: Checkout Main
|
- name: Checkout Main
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
|
|
@ -115,27 +122,17 @@ jobs:
|
||||||
env:
|
env:
|
||||||
THEOS: ${{ github.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
|
||||||
- name: Hash YT ipa url
|
- name: Prepare YT IPA
|
||||||
run: |
|
|
||||||
URL_YT="$(jq -r '.inputs.decrypted_youtube_url' $GITHUB_EVENT_PATH)"
|
|
||||||
echo ::add-mask::$URL_YT
|
|
||||||
echo URL_YT=$URL_YT >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Prepare YouTube iPA
|
|
||||||
id: prepare_youtube
|
id: prepare_youtube
|
||||||
run: |
|
run: |
|
||||||
wget "$YOUTUBE_URL" --quiet --no-verbose -O main/YouTube.ipa
|
mv YouTube.ipa main/YouTube.zip
|
||||||
cd ${{ github.workspace }}/main
|
|
||||||
mv YouTube.ipa YouTube.zip
|
|
||||||
unzip -q YouTube.zip
|
unzip -q YouTube.zip
|
||||||
youtube_version=$(defaults read "$(pwd)/Payload/YouTube.app/Info" CFBundleVersion)
|
youtube_version=$(defaults read "$(pwd)/Payload/YouTube.app/Info" CFBundleVersion)
|
||||||
echo "==> YouTube v$youtube_version downloaded!"
|
echo "==> YouTube v$youtube_version downloaded!"
|
||||||
sed -i '' "17s#.*#YOUTUBE_VERSION = ${youtube_version}#g" Makefile
|
sed -i '' "17s#.*#YOUTUBE_VERSION = ${youtube_version}#g" Makefile
|
||||||
echo "youtube_version=${youtube_version}" >> $GITHUB_OUTPUT
|
echo "youtube_version=${youtube_version}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
env:
|
env:
|
||||||
THEOS: ${{ github.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
YOUTUBE_URL: ${{ env.URL_YT }}
|
|
||||||
|
|
||||||
- name: Fix compiling & Build Package
|
- name: Fix compiling & Build Package
|
||||||
id: build_package
|
id: build_package
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue