forked from TurboWarp/packager
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.34 KB
/
generate-electron-binaries.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
name: Generate Electron Binaries
on:
workflow_dispatch:
jobs:
generate:
strategy:
matrix:
os:
- macos-latest
- windows-latest
# - ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: |
cd electron-bin
npm ci
- name: Generate macOS
if: runner.os == 'macOS'
run: |
cd electron-bin
node generate-macos.js
- name: Upload macOS
if: runner.os == 'macOS'
uses: actions/upload-artifact@v4
with:
name: electron-macos
path: electron-bin/temp/macos/*.zip
- name: Install wine
if: runner.os == 'Linux'
run: sudo apt install wine
- name: Generate Windows
if: runner.os == 'Windows' || runner.os == 'Linux'
run: |
cd electron-bin
node generate-windows.js
- name: Upload Windows
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: electron-windows
path: electron-bin/temp/windows/*.zip
- name: Upload Windows Crossbuild
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: electron-windows-crossbuild
path: electron-bin/temp/windows/*.zip