Skip to content

Commit d67a2e8

Browse files
authored
fix: Build x64 & arm64 with a single command (generates single latest-max.yml) (#481)
1 parent 6e32f87 commit d67a2e8

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.github/workflows/build-app.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,11 @@ jobs:
2626
- name: Build
2727
run: yarn build
2828

29-
- name: Make macOS x64 (electron-builder)
29+
- name: Make macOS (electron-builder)
3030
env:
3131
CSC_LINK: ${{ secrets.mac_certs }}
3232
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
33-
run: yarn make:macos:x64 --publish=never -c.mac.identity=null
34-
35-
- name: Make macOS arm64 (electron-builder)
36-
env:
37-
CSC_LINK: ${{ secrets.mac_certs }}
38-
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
39-
run: yarn make:macos:arm64 --publish=never -c.mac.identity=null
33+
run: yarn make:macos --publish=never -c.mac.identity=null
4034

4135
- name: Clean up builds
4236
run: rm -rfv dist/mac dist/mac-arm64

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ jobs:
4040
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
4141
GH_TOKEN: ${{ secrets.gh_token }}
4242
NOTARIZE: true
43-
run: |
44-
yarn make:macos:x64 --publish onTagOrDraft
45-
yarn make:macos:arm64 --publish onTagOrDraft
43+
run: yarn make:macos --publish onTagOrDraft
4644

4745
release-windows:
4846
runs-on: windows-2019

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build": "webpack --config webpack.prod.js",
88
"watch": "webpack --config webpack.common.js --watch",
99
"make:linux": "electron-builder --linux",
10+
"make:macos": "electron-builder --mac --x64 --arm64",
1011
"make:macos:x64": "electron-builder --mac --x64",
1112
"make:macos:arm64": "electron-builder --mac --arm64",
1213
"make:win": "electron-builder --win",

0 commit comments

Comments
 (0)