打包发布的修改
This commit is contained in:
parent
32c3d30844
commit
aac35e5428
|
|
@ -1,43 +1,21 @@
|
|||
// @see - https://www.electron.build/configuration/configuration
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
|
||||
"appId": "YourAppID",
|
||||
"asar": true,
|
||||
"productName": "YourAppName",
|
||||
"directories": {
|
||||
"output": "release/${version}"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"dist-electron"
|
||||
],
|
||||
"mac": {
|
||||
"target": [
|
||||
"dmg"
|
||||
],
|
||||
"artifactName": "${productName}-Mac-${version}-Installer.${ext}"
|
||||
},
|
||||
"win": {
|
||||
"target": [
|
||||
appId: "com.yourcompany.edge-proxy-manager",
|
||||
productName: "EdgeProxyManager",
|
||||
compression: "store",
|
||||
files: ["dist-electron/main.js", "dist-electron/preload.mjs", "dist/**"],
|
||||
|
||||
linux: {
|
||||
target: [
|
||||
{
|
||||
"target": "nsis",
|
||||
"arch": [
|
||||
"x64"
|
||||
]
|
||||
}
|
||||
target: "AppImage",
|
||||
arch: ["arm64"],
|
||||
},
|
||||
{
|
||||
target: "tar.gz",
|
||||
arch: ["arm64"],
|
||||
},
|
||||
],
|
||||
"artifactName": "${productName}-Windows-${version}-Setup.${ext}"
|
||||
category: "Utility",
|
||||
icon: "public/icon.png",
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": false,
|
||||
"perMachine": false,
|
||||
"allowToChangeInstallationDirectory": true,
|
||||
"deleteAppDataOnUninstall": false
|
||||
},
|
||||
"linux": {
|
||||
"target": [
|
||||
"AppImage"
|
||||
],
|
||||
"artifactName": "${productName}-Linux-${version}.${ext}"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue