-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
63 lines (61 loc) · 1.56 KB
/
config.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
# Reference: https://circleci.com/blog/electron-builds/
version: 2.1
jobs:
build_macos:
macos:
xcode: 13.3.0
steps:
- checkout
- run:
command: sudo npm install -g npm
name: Update npm
- restore_cache:
key: kobe-macos-{{ checksum "package.json" }}
- run:
command: npm install
name: Install dependencies
- save_cache:
key: kobe-macos-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
command: npm run electron:build -- -m
name: Generate builds
- store_artifacts:
path: ~/kobe/dist_electron
working_directory: ~/kobe
build_windows:
docker:
- image: electronuserland/builder:wine
steps:
- checkout
- run:
command: npm install -g npm
name: Update npm
- restore_cache:
key: kobe-windows-{{ checksum "package.json" }}
- run:
command: npm install
name: Install dependencies
- save_cache:
key: kobe-windows-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
command: npm run electron:build -- -w --arm64 --x64 --ia32
name: Generate builds
- store_artifacts:
path: ~/kobe/dist_electron
working_directory: ~/kobe
workflows:
version: 2
build_kobe:
jobs:
- build_macos:
filters:
branches:
only: main
- build_windows:
filters:
branches:
only: main