@wellau/installer
v0.1.0
Published
Installer wrapper for Codex, Claude Code, CC Switch, and Wellau setup.
Readme
@wellau/installer
Wellau Installer。
这个包不是 OpenAI 或 Anthropic 官方包。它会安装官方 @openai/codex、@anthropic-ai/claude-code,安装/启动 Codex Desktop 和 Claude Desktop,并从 farion1231/cc-switch 的 GitHub Releases 安装 CC Switch。
npm 用法
npm install -g @wellau/installer
wellau all install
wellau codex install
wellau claude install一键脚本
macOS/Linux:
curl -fsSL https://raw.githubusercontent.com/wellau/installer/main/scripts/install.sh | bashWindows PowerShell:
iwr https://raw.githubusercontent.com/wellau/installer/main/scripts/install.ps1 -UseB | iex脚本会先检查 Node.js 和 npm。如果缺失或版本过旧,会安装官方 Node.js v24.16.0:
- macOS:
https://nodejs.org/dist/v24.16.0/node-v24.16.0.pkg - Windows:
node-v24.16.0-x64.msi或node-v24.16.0-arm64.msi - Linux:
node-v24.16.0-linux-x64.tar.xz或node-v24.16.0-linux-arm64.tar.xz
之后脚本会安装 Wellau 包,并执行:
wellau all installwellau all install 会继续安装/检测:
- 官方 OpenAI Codex CLI
- Codex Desktop
- CC Switch
- 官方 Anthropic Claude Code CLI
- Claude Desktop
- CC Switch(已安装则跳过)
- Wellau 登录
跳过选项
默认 all 目标下,跳过 Codex Desktop 和 Claude Desktop:
bash scripts/install.sh --no-app跳过 CC Switch:
bash scripts/install.sh --no-cc-switch跳过 Wellau 登录:
bash scripts/install.sh --no-login直接使用 Wellau CLI:
wellau all install --no-app --no-cc-switch --no-login
wellau codex install --no-app --no-cc-switch --no-login
wellau claude install --no-app --no-cc-switch --no-login单独登录 Wellau:
wellau auth login本地开发时,直接在仓库里执行 bash scripts/install.sh 会自动安装当前目录;也可以显式指定:
WELLAU_INSTALLER_PACKAGE=/path/to/installer bash scripts/install.sh本地验证
npm run check
npm run test:dockerDocker 测试使用 --no-app,因为无界面 Linux 容器通常不能完成桌面应用安装。
Wellau 管理员发布
管理员只需要维护两类东西:
- npm 包:
@wellau/installer - 远端脚本:
scripts/install.sh、scripts/install.ps1
建议流程:
- 更新
package.json版本号。 - 在仓库根目录执行:
NPM_CONFIG_CACHE=/private/tmp/wellau-npm-cache npm pack --pack-destination dist/package- 确认
dist/package/wellau-installer-0.1.0.tgz可用。 - 确认 npm token 对
@wellauscope 有 publish 权限。 - 发布 npm:
npm publish --access public- 把
scripts/install.sh和scripts/install.ps1上传到远端原始文件地址。
对外安装入口只需要:
- npm:
npm install -g @wellau/installer - macOS/Linux 脚本:
curl -fsSL <remote>/install.sh | bash - Windows PowerShell 脚本:
iwr <remote>/install.ps1 -UseB | iex
