mirror of
https://github.com/driftywinds/cyan-builder.git
synced 2025-12-18 19:33:18 +00:00
Update inject.yml
This commit is contained in:
25
.github/workflows/inject.yml
vendored
25
.github/workflows/inject.yml
vendored
@@ -34,32 +34,23 @@ jobs:
|
|||||||
- name: Add pipx to PATH
|
- name: Add pipx to PATH
|
||||||
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
|
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Install or update Cyan
|
- name: Install cyan
|
||||||
run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
|
run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
|
||||||
|
|
||||||
- name: Download IPA and .cyan file
|
- name: Download IPA and Cyan tweak file
|
||||||
run: |
|
run: |
|
||||||
curl -L "${{ github.event.inputs.ipa_url }}" -o app.ipa
|
curl -L "${{ github.event.inputs.ipa_url }}" -o app.ipa
|
||||||
curl -L "${{ github.event.inputs.cyan_url }}" -o tweak.cyan
|
curl -L "${{ github.event.inputs.cyan_url }}" -o tweak.cyan
|
||||||
|
|
||||||
- name: Inject tweak using Cyan
|
- name: Inject tweak into IPA
|
||||||
run: cyan -i app.ipa -z tweak.cyan -o output.ipa
|
run: cyan -i app.ipa -z tweak.cyan -o output.ipa
|
||||||
|
|
||||||
- name: Create draft release (if not exists)
|
- name: Create draft release with injected IPA
|
||||||
id: create_release
|
uses: ncipollo/release-action@v1
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
with:
|
||||||
tag_name: injected-ipa-${{ github.run_number }}
|
tag: injected-ipa-${{ github.run_number }}
|
||||||
name: Injected IPA ${{ github.run_number }}
|
name: Injected IPA ${{ github.run_number }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
env:
|
artifacts: output.ipa
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
- name: Upload output.ipa to release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
tag_name: injected-ipa-${{ github.run_number }}
|
|
||||||
files: output.ipa
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user