Skip to content

Commit 88e874c

Browse files
committed
build: enhance electron-builder configs with schema and artifact naming
1 parent b045e87 commit 88e874c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

electron-builder.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://json.schemastore.org/electron-builder",
23
"appId": "io.masscode.app",
34
"productName": "massCode",
45
"directories": {
@@ -29,7 +30,11 @@
2930
"oneClick": false,
3031
"perMachine": false,
3132
"allowToChangeInstallationDirectory": true,
32-
"shortcutName": "massCode"
33+
"shortcutName": "massCode",
34+
"artifactName": "${productName}-${version}-${arch}.${ext}"
35+
},
36+
"portable": {
37+
"artifactName": "${productName}-${version}-${arch}-portable.${ext}"
3338
},
3439
"protocols": [
3540
{

electron-builder.sponsored.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://json.schemastore.org/electron-builder",
23
"appId": "io.masscode.app",
34
"productName": "massCode",
45
"directories": {
@@ -30,7 +31,11 @@
3031
"oneClick": false,
3132
"perMachine": false,
3233
"allowToChangeInstallationDirectory": true,
33-
"shortcutName": "massCode"
34+
"shortcutName": "massCode",
35+
"artifactName": "${productName}-${version}-${arch}-sponsored.${ext}"
36+
},
37+
"portable": {
38+
"artifactName": "${productName}-${version}-${arch}-portable-sponsored.${ext}"
3439
},
3540
"protocols": [
3641
{

0 commit comments

Comments
 (0)