实施最终发布策略:Intel-only 配置

 配置 Intel-only 构建 (package.json)
 更新 GitHub Actions 发布流程
 完善 README 安装说明

核心策略:
- 只发布 Intel x64 版本,通过 Rosetta 2 支持 M 系列芯片
- 使用 ad-hoc 签名,避免 ARM64 签名复杂性
- 提供详细的 macOS 安全警告处理指南
- 强调兼容性和稳定性优于原生性能
This commit is contained in:
Jason
2025-08-10 15:07:26 +08:00
parent 8d5d2841ee
commit 9b4968fdfc
3 changed files with 65 additions and 15 deletions

View File

@@ -59,6 +59,7 @@ jobs:
pnpm run dist
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_IDENTITY_AUTO_DISCOVERY: false
- name: List build files (debug)
shell: bash
@@ -84,20 +85,23 @@ jobs:
### 下载
#### Windows 用户
- **安装版 (推荐)**: `CC.Switch.Setup.${{ github.ref_name }}.exe`
- **便携版**: `CC.Switch.${{ github.ref_name }}.exe`
- **安装版 (推荐)**: `CC Switch Setup ${{ github.ref_name }}.exe`
- **便携版**: `CC Switch ${{ github.ref_name }}.exe`
#### macOS 用户
- **ARM64 (M1/M2/M3)**: `CC.Switch-${{ github.ref_name }}-arm64-mac.zip`
- **Intel x64**: `CC.Switch-${{ github.ref_name }}-mac.zip`
#### macOS 用户(推荐使用通用版本)
- **通用版本**: `CC Switch-${{ github.ref_name }}-mac.zip` - 兼容所有MacIntel + M系列
#### Linux 用户
- **AppImage**: `CC.Switch-${{ github.ref_name }}.AppImage`
- **AppImage**: `CC Switch-${{ github.ref_name }}.AppImage`
### 使用说明
1. 下载对应平台的文件
2. Windows 推荐使用安装版获得最佳体验
3. macOS 下载 ZIP 后解压即可使用
4. Linux 下载后添加执行权限: `chmod +x CC.Switch-*.AppImage`
### macOS 安装说明
1. 下载 ZIP 文件后解压
2. 首次打开可能出现"未知开发者"警告
3. 前往"系统设置" → "隐私与安全性" → 点击"仍要打开"
4. 或者使用命令: `xattr -cr "/path/to/CC Switch.app"`
### 注意事项
- macOS 版本使用 Intel 架构,通过 Rosetta 2 在 M 系列芯片上运行
- 兼容性和稳定性最佳性能损失minimal
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -22,10 +22,52 @@
- 无需安装,直接运行
- 适合需要绿色软件的用户
### 其他平台
### macOS 用户
- **macOS**: `CC-Switch-x.x.x-mac.zip`
- **Linux**: `CC-Switch-x.x.x.AppImage`
从 [Releases](../../releases) 页面下载:
- **通用版本(推荐)**: `CC Switch-x.x.x-mac.zip` - Intel版本兼容所有Mac包括M系列芯片
#### macOS 安装说明
**推荐使用通用版本**,它通过 Rosetta 2 在 M 系列 Mac 上运行良好,兼容性最佳。
由于应用使用 ad-hoc 签名(未经苹果官方认证),首次打开时可能出现"未知开发者"警告。这是正常的安全提示,处理方法:
**方法1 - 通过系统设置(推荐)**
1. 双击应用时选择"取消"
2. 打开"系统设置" → "隐私与安全性"
3. 在底部找到被阻止的应用,点击"仍要打开"
4. 确认后即可正常使用
**方法2 - 右键打开macOS Sequoia 之前)**
1. 右键点击应用图标
2. 选择"打开"
3. 在弹出的警告中点击"打开"
**方法3 - 命令行清除隔离属性**
```bash
xattr -cr "/Applications/CC Switch.app"
```
**安全保障**
- 应用已通过 ad-hoc 代码签名,确保文件完整性
- 源代码完全开源,可在 GitHub 审查
- 本地存储配置,无网络传输风险
**技术说明**
- 使用 Intel x64 架构,通过 Rosetta 2 在 M 系列芯片上运行
- 兼容性和稳定性最佳性能损失minimal
- 避免了 ARM64 原生版本的签名复杂性问题
### Linux 用户
- **AppImage**: `CC Switch-x.x.x.AppImage`
下载后添加执行权限:
```bash
chmod +x CC-Switch-x.x.x.AppImage
```
## 使用说明

View File

@@ -53,10 +53,14 @@
"mac": {
"category": "public.app-category.developer-tools",
"icon": "build/icon.icns",
"identity": "-",
"hardenedRuntime": false,
"entitlements": null,
"entitlementsInherit": null,
"target": [
{
"target": "zip",
"arch": ["arm64", "x64"]
"arch": ["x64"]
}
]
},