完善发布配置:添加图标和优化构建
- 添加应用图标文件 (icon.ico, icon.icns, icon.png) - 配置最大压缩以减小文件体积 - 修改Windows目标为portable版本,生成单文件exe - 排除不必要的node_modules文件 - 完善作者信息
This commit is contained in:
BIN
build/icon.icns
Normal file
BIN
build/icon.icns
Normal file
Binary file not shown.
BIN
build/icon.ico
Normal file
BIN
build/icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 161 KiB |
BIN
build/icon.png
Normal file
BIN
build/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
13
package.json
13
package.json
@@ -16,7 +16,7 @@
|
|||||||
"dist": "electron-builder"
|
"dist": "electron-builder"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "Jason Young",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.0.0",
|
"@types/node": "^20.0.0",
|
||||||
@@ -37,14 +37,23 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"appId": "com.ccswitch.app",
|
"appId": "com.ccswitch.app",
|
||||||
"productName": "CC Switch",
|
"productName": "CC Switch",
|
||||||
|
"compression": "maximum",
|
||||||
"directories": {
|
"directories": {
|
||||||
"output": "release"
|
"output": "release"
|
||||||
},
|
},
|
||||||
|
"files": [
|
||||||
|
"dist/**/*",
|
||||||
|
"node_modules/**/*",
|
||||||
|
"!node_modules/*/{CHANGELOG.md,README.md,readme.md}",
|
||||||
|
"!node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
|
||||||
|
"!node_modules/*.d.ts",
|
||||||
|
"!node_modules/.bin"
|
||||||
|
],
|
||||||
"mac": {
|
"mac": {
|
||||||
"category": "public.app-category.developer-tools"
|
"category": "public.app-category.developer-tools"
|
||||||
},
|
},
|
||||||
"win": {
|
"win": {
|
||||||
"target": "nsis"
|
"target": "portable"
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"target": "AppImage"
|
"target": "AppImage"
|
||||||
|
|||||||
Reference in New Issue
Block a user