mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 16:05:12 +08:00
feat(electron): 配置多平台构建产物名称
- 为 Windows 平台设置安装包文件名格式 - 添加 macOS 平台支持并配置产物命名规则 - 配置 Linux 平台构建选项及文件命名方式 - 统一各平台构建产物的命名变量使用 - 确保所有目标平台的 artifactName 格式一致 - 更新 electron-builder 配置以支持跨平台部署
This commit is contained in:
11
package.json
11
package.json
@@ -72,7 +72,16 @@
|
|||||||
"win": {
|
"win": {
|
||||||
"target": "nsis",
|
"target": "nsis",
|
||||||
"icon": "public/favicon.ico",
|
"icon": "public/favicon.ico",
|
||||||
"verifyUpdateCodeSignature": false
|
"verifyUpdateCodeSignature": false,
|
||||||
|
"artifactName": "${productName}-Setup.${ext}"
|
||||||
|
},
|
||||||
|
"mac": {
|
||||||
|
"target": ["dmg", "zip"],
|
||||||
|
"artifactName": "${productName}-mac.${ext}"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"target": ["AppImage", "deb"],
|
||||||
|
"artifactName": "${productName}-linux.${ext}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user