forked from kefir500/apk-editor-studio
-
-
Notifications
You must be signed in to change notification settings - Fork 0
137 lines (135 loc) · 4.44 KB
/
build.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: Build
on: push
jobs:
build-windows-msi:
name: Windows Build (MSI)
runs-on: windows-latest
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 5.15.2
arch: win32_msvc2019
tools: tools_openssl_x86
cache: true
- name: Checkout Repo
uses: actions/checkout@v3
- name: Download Tools
run: python scripts\download.py
- name: Build MSI Package
id: build
shell: cmd
run: |
set QTDIR=%Qt5_DIR%
set OPENSSL=%Qt5_DIR%/../../Tools/OpenSSL/Win_x86
set PATH=%PATH%;C:\Program Files (x86)\WiX Toolset v3.11\bin
call scripts\windows\packages\msi\build.msi.bat || exit
set /p VERSION=<VERSION
echo VERSION=%VERSION%>>%GITHUB_ENV%
- name: Upload Assets
uses: ncipollo/release-action@v1
with:
artifacts: apk-editor-studio_windows_${{ env.VERSION }}.msi
artifactErrorsFailBuild: true
allowUpdates: true
omitName: true
omitBody: true
prerelease: true
tag: development
token: ${{ secrets.GITHUB_TOKEN }}
build-windows-zip:
name: Windows Build (ZIP)
runs-on: windows-latest
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 5.15.2
arch: win32_msvc2019
tools: tools_openssl_x86
cache: true
- name: Checkout Repo
uses: actions/checkout@v3
- name: Download Tools
run: python scripts\download.py
- name: Build ZIP Package
id: build
shell: cmd
run: |
set QTDIR=%Qt5_DIR%
set OPENSSL=%Qt5_DIR%/../../Tools/OpenSSL/Win_x86
call "scripts\windows\packages\zip\build.zip.bat" || exit
set /p VERSION=<VERSION
echo VERSION=%VERSION%>>%GITHUB_ENV%
- name: Upload Assets
uses: ncipollo/release-action@v1
with:
artifacts: apk-editor-studio_windows_${{ env.VERSION }}.zip
artifactErrorsFailBuild: true
allowUpdates: true
omitName: true
omitBody: true
prerelease: true
tag: development
token: ${{ secrets.GITHUB_TOKEN }}
build-linux-appimage:
name: Linux Build (AppImage)
runs-on: ubuntu-18.04
steps:
- name: Install Dependencies
run: |
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-bionic -y
sudo apt-get update -qq
sudo apt-get install qt515base qt515imageformats qt515svg qt515tools libgl1-mesa-dev libsecret-1-dev adb zipalign
- name: Checkout Repo
uses: actions/checkout@v3
- name: Download Tools
run: python3 scripts/download.py
- name: Build AppImage Package
id: build
run: |
source /opt/qt515/bin/qt515-env.sh || true
scripts/linux/packages/appimage/build.appimage.sh
echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
- name: Upload Assets
uses: ncipollo/release-action@v1
with:
artifacts: scripts/linux/packages/appimage/apk-editor-studio_linux_${{ env.VERSION }}.AppImage
artifactErrorsFailBuild: true
allowUpdates: true
omitName: true
omitBody: true
prerelease: true
tag: development
token: ${{ secrets.GITHUB_TOKEN }}
build-macos:
name: macOS Build (APP, DMG)
runs-on: macos-latest
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 5.15.2
cache: true
- name: Checkout Repo
uses: actions/checkout@v3
- name: Download Tools
run: python3 scripts/download.py
- name: Build APP/DMG Package
id: build
run: |
scripts/macos/packages/app/build.app.command
npm i appdmg
scripts/macos/packages/dmg/build.dmg.command
echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
- name: Upload Assets
uses: ncipollo/release-action@v1
with:
artifacts: scripts/macos/packages/app/apk-editor-studio_macos_${{ env.VERSION }}.app.zip,scripts/macos/packages/dmg/apk-editor-studio_macos_${{ env.VERSION }}.dmg
artifactErrorsFailBuild: true
allowUpdates: true
omitName: true
omitBody: true
prerelease: true
tag: development
token: ${{ secrets.GITHUB_TOKEN }}