Skip to content

Commit c446157

Browse files
committed
fix: mac build
1 parent 783bd44 commit c446157

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434
# the first number is used for pushes to the main branch (releases)
3535
# the second number is used for pull requests (to keep the storage usage low)
3636
ARTIFACT_RETENTION_DAYS: ${{ github.event_name == 'push' && github.ref_name == 'main' && 4 || 1 }}
37-
# set cache directory for electron-builder files
37+
# set cache directory for electron and electron-builder files
3838
ELECTRON_CACHE: ".cache/electron"
3939
ELECTRON_BUILDER_CACHE: ".cache/electron-builder"
4040

4141
strategy:
42-
# don't cancel other jobs when one fails
43-
fail-fast: false
42+
# set to false to not cancel the build when a matrix job fails
43+
fail-fast: true
4444
# the build matrix runs this job for each combination of the listed arguments
4545
# e.g. the following config will run three times; node-22 on ubuntu-latest, node-22 on windows-latest, node-22 on macos-13 (x86) and node-22 on macos-latest (arm64)
4646
matrix:

electron-builder.json5

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"dist-electron",
1616
"dist",
1717
],
18+
pkg: {
19+
artifactName: "${productName}-${version}-Source.${ext}",
20+
},
1821
win: {
1922
target: [
2023
{
@@ -35,13 +38,7 @@
3538
},
3639
mac: {
3740
target: [
38-
{
39-
target: "pkg",
40-
arch: [
41-
"x64",
42-
"arm64"
43-
],
44-
}
41+
"dmg"
4542
],
4643
artifactName: "${productName}-${version}-MacOS.${ext}",
4744
},

0 commit comments

Comments
 (0)