Skip to content

Create a stable release #1

Create a stable release

Create a stable release #1

Workflow file for this run

name: Create a stable release
on:
workflow_dispatch:
inputs:
discord_ipa_url:
description: "Discord IPA URL"
default: ""
required: true
type: string
jobs:
build:
name: Build and publish Enmity for iOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
ref: 'main'
submodules: true
- name: Check cache
id: verify-cache
run: |
echo "heads=`git ls-remote https://github.com/theos/theos | head -n 1 | cut -f 1`-`git ls-remote https://github.com/theos/sdks | head -n 1 | cut -f 1`" >> $GITHUB_OUTPUT
- name: Use cache
uses: actions/cache@v2
with:
path: |
${{ github.workspace }}/theos
key: ${{ runner.os }}-${{ steps.verify-cache.outputs.heads }}
- name: Prepare Theos
uses: Randomblock1/theos-action@v1
- name: Prepare Azule
run: |
git clone https://github.com/Al4ise/Azule ${{ github.workspace }}/Azule
cd Azule
git checkout 27c02b415cff15b1c131a0e95bcc2438023f86da
- name: Prepare Enmity Patcher
run: |
curl -L https://github.com/enmity-mod/patcher/releases/latest/download/patcher.mac-amd64 -o ${{ github.workspace }}/patcher
chmod +x patcher
- name: Download Discord IPA
run: |
curl -L ${{ inputs.discord_ipa_url }} -o ${{ github.workspace }}/Discord.ipa
- name: Patch Discord
run: |
${{ github.workspace }}/patcher ${{ github.workspace }}/Discord.ipa
mkdir out
- name: Retrieve version
id: version
run: echo "__ENMITY_VERSION=$(cat control | grep -E 'Version:(.*)' | awk '{ print $2 }')" >> $GITHUB_OUTPUT
- name: Create Enmity.ipa
run: |
${{ github.workspace }}/Azule/azule -U -i Enmity.ipa -o out -f out/Enmity.Sideload.deb
mv out/Enmity+Enmity.Sideload.deb.ipa out/Enmity.ipa
- name: Create Enmity.Dev.ipa
run: |
${{ github.workspace }}/Azule/azule -U -i Enmity.ipa -o out -f out/Enmity.Sideload.Development.deb
mv out/Enmity+Enmity.Sideload.Development.deb.ipa out/Enmity.Development.ipa
- name: Upload Enmity.ipa as artifact
uses: actions/upload-artifact@v3
with:
name: Enmity-ipa
path: out/Enmity.ipa
- name: Upload Enmity.Development.ipa as artifact
uses: actions/upload-artifact@v3
with:
name: Enmity-Development-ipa
path: out/Enmity.Development.ipa