1
0
mirror of https://github.com/driftywinds/cyan-builder.git synced 2025-12-18 19:33:18 +00:00
Files
cyan-builder/.github/workflows/inject.yml
2025-08-07 21:38:56 +05:30

57 lines
1.5 KiB
YAML

name: Inject IPA with Cyan
on:
workflow_dispatch:
inputs:
ipa_url:
description: 'Direct link to the IPA file'
required: true
cyan_url:
description: 'Direct link to the .cyan tweak file'
required: true
jobs:
inject:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-pip python3-venv curl unzip
- name: Install pipx
run: |
python3 -m pip install --user pipx
python3 -m pipx ensurepath
env:
PIPX_HOME: ~/.local/pipx
PIPX_BIN_DIR: ~/.local/bin
- name: Add pipx to PATH
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Install cyan
run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
- name: Download IPA and Cyan tweak file
run: |
curl -L "${{ github.event.inputs.ipa_url }}" -o app.ipa
curl -L "${{ github.event.inputs.cyan_url }}" -o tweak.cyan
- name: Inject tweak into IPA
run: cyan -i app.ipa -z tweak.cyan -o output.ipa
- name: Create draft release with injected IPA
uses: ncipollo/release-action@v1
with:
tag: injected-ipa-${{ github.run_number }}
name: Injected IPA ${{ github.run_number }}
draft: true
prerelease: false
artifacts: output.ipa
token: ${{ secrets.GH_TOKEN }}