CODEX DESKTOP
用 Codex 安装
复制这段话,回到 Codex 粘贴并发送。
查看安装指令与来源
Cloudflare CDN · 1a559b86
SHA-256 · 5e3766f059eeb89ec023a96c148023849f1ef3dfcad525a823f4521cf2a6562b复制这段话,回到 Codex 粘贴并发送。
SHA-256 · 5e3766f059eeb89ec023a96c148023849f1ef3dfcad525a823f4521cf2a6562b命令会在目标目录已存在时停止,不会静默覆盖。运行前确认 ZIP 在 Downloads 文件夹。
$petId = "star-armor-tuantuan"
$codexRoot = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $env:USERPROFILE ".codex" }
$petsRoot = Join-Path $codexRoot "pets"
$target = Join-Path $petsRoot $petId
$archive = Join-Path $env:USERPROFILE "Downloads\$petId.zip"
if (Test-Path -LiteralPath $target) { throw "$petId already exists. Stop and review it before replacing anything." }
New-Item -ItemType Directory -Force -Path $petsRoot | Out-Null
Expand-Archive -LiteralPath $archive -DestinationPath $petsRoot执行前先确认 ZIP 已下载到系统的 Downloads 文件夹。安装后完整退出并重新打开 Codex Desktop。