实施最终发布策略:Intel-only 配置
✅ 配置 Intel-only 构建 (package.json) ✅ 更新 GitHub Actions 发布流程 ✅ 完善 README 安装说明 核心策略: - 只发布 Intel x64 版本,通过 Rosetta 2 支持 M 系列芯片 - 使用 ad-hoc 签名,避免 ARM64 签名复杂性 - 提供详细的 macOS 安全警告处理指南 - 强调兼容性和稳定性优于原生性能
This commit is contained in:
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
@@ -59,6 +59,7 @@ jobs:
|
|||||||
pnpm run dist
|
pnpm run dist
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||||
|
|
||||||
- name: List build files (debug)
|
- name: List build files (debug)
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -84,20 +85,23 @@ jobs:
|
|||||||
### 下载
|
### 下载
|
||||||
|
|
||||||
#### Windows 用户
|
#### Windows 用户
|
||||||
- **安装版 (推荐)**: `CC.Switch.Setup.${{ github.ref_name }}.exe`
|
- **安装版 (推荐)**: `CC Switch Setup ${{ github.ref_name }}.exe`
|
||||||
- **便携版**: `CC.Switch.${{ github.ref_name }}.exe`
|
- **便携版**: `CC Switch ${{ github.ref_name }}.exe`
|
||||||
|
|
||||||
#### macOS 用户
|
#### macOS 用户(推荐使用通用版本)
|
||||||
- **ARM64 (M1/M2/M3)**: `CC.Switch-${{ github.ref_name }}-arm64-mac.zip`
|
- **通用版本**: `CC Switch-${{ github.ref_name }}-mac.zip` - 兼容所有Mac(Intel + M系列)
|
||||||
- **Intel x64**: `CC.Switch-${{ github.ref_name }}-mac.zip`
|
|
||||||
|
|
||||||
#### Linux 用户
|
#### Linux 用户
|
||||||
- **AppImage**: `CC.Switch-${{ github.ref_name }}.AppImage`
|
- **AppImage**: `CC Switch-${{ github.ref_name }}.AppImage`
|
||||||
|
|
||||||
### 使用说明
|
### macOS 安装说明
|
||||||
1. 下载对应平台的文件
|
1. 下载 ZIP 文件后解压
|
||||||
2. Windows 推荐使用安装版获得最佳体验
|
2. 首次打开可能出现"未知开发者"警告
|
||||||
3. macOS 下载 ZIP 后解压即可使用
|
3. 前往"系统设置" → "隐私与安全性" → 点击"仍要打开"
|
||||||
4. Linux 下载后添加执行权限: `chmod +x CC.Switch-*.AppImage`
|
4. 或者使用命令: `xattr -cr "/path/to/CC Switch.app"`
|
||||||
|
|
||||||
|
### 注意事项
|
||||||
|
- macOS 版本使用 Intel 架构,通过 Rosetta 2 在 M 系列芯片上运行
|
||||||
|
- 兼容性和稳定性最佳,性能损失minimal
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
48
README.md
48
README.md
@@ -22,10 +22,52 @@
|
|||||||
- 无需安装,直接运行
|
- 无需安装,直接运行
|
||||||
- 适合需要绿色软件的用户
|
- 适合需要绿色软件的用户
|
||||||
|
|
||||||
### 其他平台
|
### macOS 用户
|
||||||
|
|
||||||
- **macOS**: `CC-Switch-x.x.x-mac.zip`
|
从 [Releases](../../releases) 页面下载:
|
||||||
- **Linux**: `CC-Switch-x.x.x.AppImage`
|
|
||||||
|
- **通用版本(推荐)**: `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
|
||||||
|
```
|
||||||
|
|
||||||
## 使用说明
|
## 使用说明
|
||||||
|
|
||||||
|
|||||||
@@ -53,10 +53,14 @@
|
|||||||
"mac": {
|
"mac": {
|
||||||
"category": "public.app-category.developer-tools",
|
"category": "public.app-category.developer-tools",
|
||||||
"icon": "build/icon.icns",
|
"icon": "build/icon.icns",
|
||||||
|
"identity": "-",
|
||||||
|
"hardenedRuntime": false,
|
||||||
|
"entitlements": null,
|
||||||
|
"entitlementsInherit": null,
|
||||||
"target": [
|
"target": [
|
||||||
{
|
{
|
||||||
"target": "zip",
|
"target": "zip",
|
||||||
"arch": ["arm64", "x64"]
|
"arch": ["x64"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user