feat(ci): unhardcode patcher output

This commit is contained in:
amsyarasyiq 2024-05-17 02:18:14 +08:00
parent f1fb91448c
commit 5744e61c9d
2 changed files with 10 additions and 6 deletions

View file

@ -80,7 +80,7 @@ jobs:
- name: Download IPA patcher
working-directory: patcher
run: |
curl -L -o patcher https://github.com/amsyarasyiq/pyoncord-ipa-patcher/releases/download/release-pyon/patcher.mac-amd64
curl -L -o patcher https://github.com/amsyarasyiq/bunny-ipa-patcher/releases/download/release-pyon/patcher.mac-amd64
chmod +x patcher
- name: Download IPA icons
@ -107,8 +107,10 @@ jobs:
- name: Patch Discord
working-directory: patcher
run : |
./patcher -d ${{ github.workspace }}/build/${{ env.APP_NAME }}.ipa -i ./ipa-icons.zip
mv -f ./*.ipa "${{ github.workspace }}/build/${{ env.APP_NAME }}.ipa"
./patcher \
-d ${{ github.workspace }}/build/${{ env.APP_NAME }}.ipa \
-o ${{ github.workspace }}/build/${{ env.APP_NAME }}.ipa \
-i ./ipa-icons.zip
- name: Upload ipa as artifact
uses: actions/upload-artifact@v4

View file

@ -80,7 +80,7 @@ jobs:
- name: Download IPA patcher
working-directory: patcher
run: |
curl -L -o patcher https://github.com/amsyarasyiq/pyoncord-ipa-patcher/releases/download/release-pyon/patcher.mac-amd64
curl -L -o patcher https://github.com/amsyarasyiq/bunny-ipa-patcher/releases/download/release-pyon/patcher.mac-amd64
chmod +x patcher
- name: Download IPA icons
@ -109,8 +109,10 @@ jobs:
- name: Patch Discord
working-directory: patcher
run : |
./patcher -d ${{ github.workspace }}/build/${{ env.APP_NAME }}.ipa -i ./ipa-icons.zip
mv -f ./*.ipa "${{ github.workspace }}/build/${{ env.APP_NAME }}.ipa"
./patcher \
-d ${{ github.workspace }}/build/${{ env.APP_NAME }}.ipa \
-o ${{ github.workspace }}/build/${{ env.APP_NAME }}.ipa \
-i ./ipa-icons.zip
- name: Upload ipa as artifact
uses: actions/upload-artifact@v4