change electron-build config file foramt
This commit is contained in:
parent
3e407af2d6
commit
fb20b1f949
|
@ -1,38 +0,0 @@
|
||||||
/**
|
|
||||||
* @type {import('electron-builder').Configuration}
|
|
||||||
* @see https://www.electron.build/configuration/configuration
|
|
||||||
*/
|
|
||||||
module.exports = {
|
|
||||||
appId: "YourAppID",
|
|
||||||
productName: "YourAppName",
|
|
||||||
copyright: "Copyright © 2022 ${author}",
|
|
||||||
asar: true,
|
|
||||||
directories: {
|
|
||||||
output: "release/${version}",
|
|
||||||
buildResources: "resources",
|
|
||||||
},
|
|
||||||
files: ["dist"],
|
|
||||||
win: {
|
|
||||||
target: [
|
|
||||||
{
|
|
||||||
target: "nsis",
|
|
||||||
arch: ["x64"],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
artifactName: "${productName}-${version}-Setup.${ext}",
|
|
||||||
},
|
|
||||||
nsis: {
|
|
||||||
oneClick: false,
|
|
||||||
perMachine: false,
|
|
||||||
allowToChangeInstallationDirectory: true,
|
|
||||||
deleteAppDataOnUninstall: false,
|
|
||||||
},
|
|
||||||
mac: {
|
|
||||||
target: ["dmg"],
|
|
||||||
artifactName: "${productName}-${version}-Installer.${ext}",
|
|
||||||
},
|
|
||||||
linux: {
|
|
||||||
target: ["AppImage"],
|
|
||||||
artifactName: "${productName}-${version}-Installer.${ext}",
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
"appId": "YourAppID",
|
||||||
|
"productName": "YourAppName",
|
||||||
|
"copyright": "Copyright © 2022 ${author}",
|
||||||
|
"asar": true,
|
||||||
|
"directories": {
|
||||||
|
"output": "release/${version}",
|
||||||
|
"buildResources": "resources"
|
||||||
|
},
|
||||||
|
"files": ["dist"],
|
||||||
|
"win": {
|
||||||
|
"target": [
|
||||||
|
{
|
||||||
|
"target": "nsis",
|
||||||
|
"arch": ["x64"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"artifactName": "${productName}-${version}-Setup.${ext}"
|
||||||
|
},
|
||||||
|
"nsis": {
|
||||||
|
"oneClick": false,
|
||||||
|
"perMachine": false,
|
||||||
|
"allowToChangeInstallationDirectory": true,
|
||||||
|
"deleteAppDataOnUninstall": false
|
||||||
|
},
|
||||||
|
"mac": {
|
||||||
|
"target": ["dmg"],
|
||||||
|
"artifactName": "${productName}-${version}-Installer.${ext}"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"target": ["AppImage"],
|
||||||
|
"artifactName": "${productName}-${version}-Installer.${ext}"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue