mirror of
https://github.com/CarlGao4/um-react-electron.git
synced 2024-11-27 10:22:16 +00:00
70 lines
1.7 KiB
Plaintext
Executable File
70 lines
1.7 KiB
Plaintext
Executable File
/**
|
|
* @see https://www.electron.build/configuration/configuration
|
|
*/
|
|
{
|
|
"$schema": "https://github.com/dfvips/iqiyi-parser",
|
|
"appId": "com.dreamfly.um",
|
|
"productName": "音乐解锁 React",
|
|
"asar": true,
|
|
"directories": {
|
|
"output": "release/${version}"
|
|
},
|
|
"asarUnpack":[
|
|
"resources/**"
|
|
],
|
|
"mac": {
|
|
"icon": "build/icon.icns",
|
|
"artifactName": "${name}-${version}-macos-${arch}.${ext}",
|
|
"target": [
|
|
{
|
|
target: "dmg",
|
|
arch: ["arm64", "x64"]
|
|
}
|
|
],
|
|
"files": [
|
|
"!**/.vscode/*",
|
|
"!{.eslintignore,.eslintrc.js,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}"
|
|
]
|
|
},
|
|
"compression": "maximum",
|
|
"win": {
|
|
"icon": "build/icon.ico",
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
},
|
|
{
|
|
"target": "7z"
|
|
}
|
|
],
|
|
"artifactName": "${name}-${version}-win-${arch}.${ext}",
|
|
"files": [
|
|
"!**/.vscode/*",
|
|
"!{.eslintignore,.eslintrc.js,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}"
|
|
]
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"perMachine": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"deleteAppDataOnUninstall": true,
|
|
"installerIcon": "build/icon.ico",
|
|
"uninstallerIcon": "build/icon.ico",
|
|
"uninstallDisplayName": "${name}-${version}",
|
|
"artifactName": "${name}-${version}-win-${arch}-setup.${ext}",
|
|
"shortcutName": "${productName}"
|
|
},
|
|
"linux": {
|
|
"icon": "build/icon.png",
|
|
"target": "AppImage",
|
|
"artifactName": "${name}-${version}-${arch}.${ext}",
|
|
"files": [
|
|
"!**/.vscode/*",
|
|
"!{.eslintignore,.eslintrc.js,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}"
|
|
]
|
|
},
|
|
}
|