11// @see - https://www.electron.build/configuration/configuration
22{
3- $schema : "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json" ,
4- appId : "cn.programcx" ,
5- asar : true ,
6- productName : "Flow Message" ,
7- directories : {
8- output : "release/${version}" ,
3+ " $schema" : "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json" ,
4+ " appId" : "cn.programcx" ,
5+ " asar" : true ,
6+ " productName" : "Flow Message" ,
7+ " directories" : {
8+ " output" : "release/${version}"
99 } ,
10- files : [ "dist" , "dist-electron" ] ,
11- mac : {
12- target : [ "dmg" ] ,
13- artifactName : "${productName}-Mac-${version}-Installer.${ext}" ,
10+ "files" : [
11+ "dist" ,
12+ "dist-electron"
13+ ] ,
14+ "mac" : {
15+ "target" : [
16+ "dmg"
17+ ] ,
18+ "artifactName" : "${productName}-Mac-${version}-Installer.${ext}" ,
1419 icon : "public/icon/icon.icns" ,
1520 } ,
16- win : {
17- target : [
21+ " win" : {
22+ " target" : [
1823 {
19- target : "nsis" ,
20- arch : [ "x64" ] ,
21- } ,
24+ "target" : "nsis" ,
25+ "arch" : [
26+ "x64"
27+ ]
28+ }
2229 ] ,
23- artifactName : "${productName}-Windows-${version}-Setup.${ext}" ,
30+ " artifactName" : "${productName}-Windows-${version}-Setup.${ext}" ,
2431 icon : "public/icon/icon.ico" ,
2532 } ,
26- nsis : {
27- oneClick : false ,
28- perMachine : false ,
29- allowToChangeInstallationDirectory : true ,
30- deleteAppDataOnUninstall : false ,
31- } ,
32- linux : {
33- target : [ "AppImage" ] ,
34- artifactName : "${productName}-Linux-${version}.${ext}" ,
35- "icon" : "public/icon/icon.png" ,
33+ "nsis" : {
34+ "oneClick" : false ,
35+ "perMachine" : false ,
36+ "allowToChangeInstallationDirectory" : true ,
37+ "deleteAppDataOnUninstall" : false
3638 } ,
37- }
39+ "linux" : {
40+ "target" : [
41+ "AppImage"
42+ ] ,
43+ "artifactName" : "${productName}-Linux-${version}.${ext}"
44+ }
45+ }
0 commit comments