返回 CodeWhale
install.ts
根目录 / web / lib / content / install.ts
1 /**
2 * The two one-line installs, shared by the install page and the homepage
3 * hero. Code-owned shell, never translated.
4 */
5 export const INSTALL_COMMANDS = {
6 shell: "curl -fsSL https://codewhale.net/install.sh | sh",
7 npm: "npm install -g codewhale",
8 // winget-pkgs publishes `HunterBown.CodeWhale` (portable x64, `codewhale`
9 // command; checked 2026-10-04, latest 0.10.0). Scoop and the GitHub Release
10 // installer are the alternatives in the install guide.
11 windows: "winget install HunterBown.CodeWhale",
12 } as const;
13
14 export const INSTALL_COPY = {
15 metaTitle: { en: "Install · Codewhale", zh: "安装 · Codewhale" },
16 metaDescription: { en: "Install Codewhale on macOS, Linux, or Windows, connect a model, and run your first task. Covers package managers and source builds.", zh: "在 macOS、Linux 或 Windows 上安装 Codewhale,连接模型并运行第一项任务。也介绍包管理器和源码构建。" },
17 source: { en: "Read the verified guide on GitHub", zh: "查看 GitHub 上已验证的指南" },
18 translationNotice: { en: "This verified guide is in English. The Chinese translation has not yet been updated for this revision.", zh: "本页显示已验证的英文指南。中文译文尚未更新至此修订版。" },
19 configuration: { en: "Settings and configuration", zh: "设置与配置" },
20 } as const;
21
21 lines TYPESCRIPT