postcat/electron-builder.json
2022-10-14 11:19:51 +08:00

78 lines
1.6 KiB
JSON

{
"appId": ".eoapi.io",
"productName": "Eoapi",
"asar": true,
"directories": {
"output": "release/"
},
"files": [
"out/app/**/*.js*",
"out/platform/**/*.js*",
"out/enviroment.js",
"out/shared/**/*.js*",
"**/*/browser/dist/**/*",
"**/*/node/dist/**/*",
"out/workbench/browser/src/**/*.js*",
"out/workbench/node/**/*.js*",
"out/core/**/package.json",
"out/app/common/**/*",
"!**/*.ts"
],
"publish": [
"github",
{
"provider": "generic",
"url": "https://packages.eoapi.io"
}
],
"generateUpdatesFilesForAllChannels": true,
"nsis": {
"oneClick": false,
"allowElevation": true,
"allowToChangeInstallationDirectory": true,
// for win - 将协议写入主机的脚本
"include": "scripts/urlProtoco.nsh"
},
"protocols": [
// for macOS - 用于在主机注册指定协议
{
"name": "eoapi",
"schemes": [
"eoapi"
]
}
],
"win": {
"icon": "src/app/common/images/256x256.png",
"target": [
{
"target": "nsis"
},
"portable"
]
},
"portable": {
"splashImage": "src/app/common/images/eoapi.bmp"
},
"mac": {
"icon": "src/app/common/images/512x512.png",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "scripts/entitlements.mac.plist",
"entitlementsInherit": "scripts/entitlements.mac.plist",
"target": [
"dmg",
"zip"
]
},
"dmg": {
"sign": false
},
"afterSign": "scripts/notarize.js",
"linux": {
"icon": "src/app/common/images/",
"target": [
"AppImage"
]
}
}