145 lines
2.8 KiB
Plaintext
145 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"
|
|
],
|
|
}
|
|
],
|
|
// "artifactName": "${productName}-mac-${arch}-${version}.${ext}",
|
|
category: "public.app-category.utilities"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64",
|
|
"ia32"
|
|
]
|
|
},
|
|
// {
|
|
// "target": "appx",
|
|
// "arch": [
|
|
// "x64",
|
|
// "ia32"
|
|
// ]
|
|
// },
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"x64",
|
|
"ia32"
|
|
]
|
|
},
|
|
{
|
|
"target": "portable",
|
|
"arch": [
|
|
"x64",
|
|
"ia32"
|
|
]
|
|
}
|
|
],
|
|
// "artifactName": "${productName}-win-${arch}-${version}.${ext}"
|
|
},
|
|
"nsis": {
|
|
// "artifactName": "${productName}-win-${arch}-${version}-Setup.${ext}",
|
|
"oneClick": false,
|
|
"perMachine": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"deleteAppDataOnUninstall": false
|
|
},
|
|
"portable": {
|
|
// "artifactName": "${productName}-win-${arch}-${version}.${ext}"
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
{
|
|
"target": "AppImage",
|
|
"arch": [
|
|
"x64",
|
|
"arm64",
|
|
// "armv7l"
|
|
]
|
|
},
|
|
{
|
|
"target": "deb",
|
|
"arch": [
|
|
"x64",
|
|
"arm64",
|
|
// "armv7l"
|
|
]
|
|
},
|
|
{
|
|
"target": "rpm",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
},
|
|
// {
|
|
// "target": "snap",
|
|
// "arch": [
|
|
// "x64"
|
|
// ]
|
|
// }
|
|
|
|
],
|
|
"category": "Network",
|
|
// "artifactName": "${productName}-Linux-${arch}-${version}.${ext}"
|
|
},
|
|
"publish": [
|
|
{
|
|
"provider": "github",
|
|
"owner": "luckjiawei",
|
|
"repo": "frpc-desktop",
|
|
"releaseType": "draft",
|
|
},
|
|
]
|
|
}
|