修复 macOS 构建和版本冲突问题

- 将 macOS 目标从 DMG 改为 ZIP 避免 hdiutil 问题
- 更新版本号到 1.0.5 避免标签冲突
- 添加 ARM64 和 x64 双架构支持
- 禁用自动发布避免版本冲突
This commit is contained in:
farion1231
2025-08-06 23:52:39 +08:00
parent 7c12b660dd
commit eecfcdf40a

View File

@@ -1,6 +1,6 @@
{
"name": "cc-switch",
"version": "1.0.0",
"version": "1.0.5",
"description": "Claude Code 供应商切换工具",
"main": "dist/main/index.js",
"scripts": {
@@ -38,6 +38,7 @@
"appId": "com.ccswitch.app",
"productName": "CC Switch",
"compression": "maximum",
"publish": null,
"directories": {
"output": "release"
},
@@ -52,7 +53,13 @@
],
"mac": {
"category": "public.app-category.developer-tools",
"icon": "build/icon.icns"
"icon": "build/icon.icns",
"target": [
{
"target": "zip",
"arch": ["arm64", "x64"]
}
]
},
"win": {
"target": [