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