Skip to content

Commit d5baf64

Browse files
committed
fix(electron): consolidate build config and fix artifact naming
1 parent 8cbefd0 commit d5baf64

2 files changed

Lines changed: 33 additions & 62 deletions

File tree

electron/electron-builder.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

electron/package.json

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,47 @@
5555
"mac": {
5656
"category": "public.app-category.developer-tools",
5757
"icon": "../assets/icon.icns",
58+
"artifactName": "${productName}-${version}-${arch}.${ext}",
5859
"target": [
59-
"dmg",
60-
"zip"
60+
{
61+
"target": "dmg",
62+
"arch": [
63+
"arm64"
64+
]
65+
}
6166
]
6267
},
68+
"linux": {
69+
"target": [
70+
{
71+
"target": "AppImage",
72+
"arch": [
73+
"x64"
74+
]
75+
}
76+
],
77+
"category": "Development",
78+
"icon": "../assets/icons",
79+
"artifactName": "${productName}-${version}-x64.${ext}"
80+
},
6381
"win": {
6482
"icon": "assets/icon.ico",
83+
"artifactName": "${productName}-${version}-x64.${ext}",
6584
"target": [
66-
"nsis",
67-
"zip"
85+
{
86+
"target": "nsis",
87+
"arch": [
88+
"x64"
89+
]
90+
}
6891
]
6992
},
93+
"nsis": {
94+
"oneClick": false,
95+
"perMachine": false,
96+
"allowToChangeInstallationDirectory": true,
97+
"artifactName": "${productName}-${version}-x64.${ext}"
98+
},
7099
"dmg": {
71100
"contents": [
72101
{

0 commit comments

Comments
 (0)