forked from enmity-mod/tweak
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (62 loc) · 2.27 KB
/
debug.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Create a debug build (PRIVATE)
on:
workflow_dispatch:
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 "::set-output name=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`"
- 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
- 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: Patch Discord
run : |
${{ github.workspace }}/patcher
mkdir out
- name: Build package
run: >
rm -f packages/*
make clean package
mv $(find packages -name "*.deb" -print -quit) out/enmity.deb
- name: Create Enmity.ipa
run : |
${{ github.workspace }}/Azule/azule -i Enmity.ipa -o out -f out/enmity.deb
mv out/Enmity+enmity.deb.ipa out/enmity.ipa
- name: Build dev deb
run: |
rm -f packages/*
echo $"$(sed 's/Name\:.*/Name\: Enmity (Dev)/' control)" > control
echo $"$(sed 's/Package\:.*/Package\: app.enmity.dev/' control)" > control
make clean package FINALPACKAGE=1 DEVTOOLS=1
mv $(find packages -name "*.deb" -print -quit) out/enmity.dev.deb
- name: Create Enmity.Dev.ipa
run : |
${{ github.workspace }}/Azule/azule -i Enmity.ipa -o out -f out/enmity.dev.deb
mv out/Enmity+enmity.dev.deb.ipa out/enmity.dev.ipa
- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: DEBUG
prerelease: true
files: |
out/*