-
-
Notifications
You must be signed in to change notification settings - Fork 715
54 lines (54 loc) · 1.46 KB
/
build-packages.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
name: Build Package
on: [workflow_dispatch]
jobs:
buildMac:
runs-on: macos-13
env:
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --omit=optional
- name: build package
run: npm run buildMacIntel && npm run buildMacArm
- name: upload package
uses: actions/upload-artifact@v4
with:
name: mac-package
path: dist/app/*.zip
buildWindows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --omit=optional
- name: build package
run: npm run buildWindows
- name: upload package
uses: actions/upload-artifact@v4
with:
name: windows-package
path: |
dist/app/*.zip
dist/app/*.exe
buildLinux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --omit=optional
- name: build package
run: npm run buildDebian && npm run buildRedhat && npm run buildLinuxArm64 && npm run buildRaspi
- name: upload package
uses: actions/upload-artifact@v4
with:
name: linux-package
path: |
dist/app/*.deb
dist/app/*.rpm