# Claude Code 讲座 · 安装包离线备份

为防止学生现场网络不通 / GitHub 打不开，这里已把所有需要的最新版安装包都下载到本地。

下载时间：2026-04-20
验证方式：全部按官方 manifest SHA-256 校验通过

---

## 📦 目录结构

```
安装包备份/
├── cc-switch/          # 模型切换工具
├── claude-code/        # Claude Code 本体
└── git-for-windows/    # Windows 前置依赖
```

---

## 1. cc-switch（模型切换工具，v3.13.0）

| 文件 | 用途 | 大小 |
|---|---|---|
| `CC-Switch-v3.13.0-macOS.dmg` | macOS 安装包（通用，Intel/Apple Silicon 均可） | 23 MB |
| `CC-Switch-v3.13.0-Windows.msi` | Windows 标准安装包（推荐） | 11 MB |
| `CC-Switch-v3.13.0-Windows-Portable.zip` | Windows 免安装版（解压即用） | 11 MB |

来源：<https://github.com/farion1231/cc-switch/releases/tag/v3.13.0>

**使用方法**：
- Mac：双击 dmg → 拖进 Applications
- Windows：双击 msi 一路 Next

---

## 2. claude-code（Claude Code 本体，v2.1.114）

### 官方安装脚本（有网可用）
| 文件 | 用途 |
|---|---|
| `install.sh` | macOS / Linux 一键安装脚本 |
| `install.ps1` | Windows PowerShell 一键安装脚本 |
| `manifest-2.1.114.json` | 版本清单 + 各平台 SHA-256 |
| `latest.txt` | 当前最新版本号 |

### 已预下载好的原生二进制（无网也能装）
| 文件 | 适用平台 | 大小 | SHA-256 |
|---|---|---|---|
| `claude-2.1.114-darwin-arm64` | macOS（M1/M2/M3/M4 Apple Silicon） | 195 MB | `bf1b4da3...` ✓ |
| `claude-2.1.114-darwin-x64` | macOS（Intel 芯片） | 196 MB | `1a30360b...` ✓ |
| `claude-2.1.114-win32-x64.exe` | Windows 64 位（绝大多数 PC） | 235 MB | `6f4a961e...` ✓ |

### 离线怎么用这些二进制？

**macOS / Linux**：
```bash
# 1. 把对应平台文件复制到目标机器
# 2. 赋可执行权限
chmod +x claude-2.1.114-darwin-arm64
# 3. 让它完成本地安装
./claude-2.1.114-darwin-arm64 install
# 之后就可以直接 claude 启动了
```

**Windows**：
```powershell
# 直接在 PowerShell 里运行
.\claude-2.1.114-win32-x64.exe install
```

来源：`https://downloads.claude.ai/claude-code-releases/`

---

## 3. git-for-windows（Windows 前置依赖）

| 文件 | 用途 | 大小 |
|---|---|---|
| `Git-2.53.0.3-64-bit.exe` | Git for Windows 最新稳定版安装包 | 62 MB |

Windows 上的 Claude Code 需要 Git Bash 作为底层 shell，所以 Windows 同学必须先装 Git。

来源：<https://github.com/git-for-windows/git/releases/tag/v2.53.0.windows.3>

**使用方法**：双击 exe → 一路 Next。

---

## 🎒 学生分发建议

如果只给学生一份最小包，按系统分别打包：

**Mac 学生包**（约 220 MB）：
- `cc-switch/CC-Switch-v3.13.0-macOS.dmg`
- `claude-code/claude-2.1.114-darwin-arm64`（Apple Silicon）
- `claude-code/claude-2.1.114-darwin-x64`（Intel，可选）

**Windows 学生包**（约 310 MB）：
- `git-for-windows/Git-2.53.0.3-64-bit.exe`
- `cc-switch/CC-Switch-v3.13.0-Windows.msi`
- `claude-code/claude-2.1.114-win32-x64.exe`

配合讲座 HTML 《学生版_Claude_Code_保姆教程.html》一起发给学生即可。
