frpc-desktop/electron-builder.json5
刘嘉伟 ce949aca44 🏗️ 打包优化
2024-08-07 21:21:42 +08:00

160 lines
2.8 KiB
Plaintext

/**
* @see https://www.electron.build/configuration/configuration
*/
{
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
"appId": "priv.liujiawei.frpc.desktop",
"asar": true,
"productName": "Frpc-Desktop",
"directories": {
"output": "release/${version}"
},
"icon": "./public/logo/pack/512x512.png",
"files": [
"dist",
"dist-electron"
],
"dmg": {
"window": {
"width": 540,
"height": 380
},
"contents": [
{
"x": 410,
"y": 230,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 230,
"type": "file"
}
]
},
"mac": {
"target": [
{
target: "dmg",
"arch": [
"x64",
"arm64",
"universal"
]
},
{
"target": "zip",
"arch": [
"x64",
"arm64",
"universal"
]
}
],
"extraResources": {
"from": "./extra/darwin/${arch}/",
"to": "./",
"filter": [
"**/*"
]
},
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
},
// {
// "target": "appx",
// "arch": [
// "x64",
// "ia32"
// ]
// },
{
"target": "zip",
"arch": [
"x64",
"ia32"
]
},
{
"target": "portable",
"arch": [
"x64",
"ia32"
]
}
],
"extraResources": {
"from": "./extra/win32/${arch}/",
"to": "./",
"filter": [
"**/*"
]
}
},
"nsis": {
"artifactName": "${productName}-Setup-${version}.${ext}",
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": false
},
"portable": {
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
"linux": {
"target": [
{
"target": "AppImage",
"arch": [
"x64",
"arm64",
// "armv7l"
]
},
{
"target": "deb",
"arch": [
"x64",
"arm64",
// "armv7l"
]
},
{
"target": "rpm",
"arch": [
"x64"
]
},
{
"target": "snap",
"arch": [
"x64"
]
}
],
"extraResources": {
"from": "./extra/linux/${arch}/",
"to": "./",
"filter": [
"**/*"
]
},
"publish": [
{
"provider": "github",
"owner": "luckjiawei",
"repo": "frpc-desktop",
"releaseType": "draft",
},
]
},
}