跳至正文

桌宠下载与安装

一条命令,安装你的 Codex 桌宠。

选择桌宠,复制一条经过验证的命令,CodexPetDB 会安全处理桌宠包。

安装结果预览

Hsr Trailblazer The Destruction 1 desktop pet preview

Hsr Trailblazer The Destruction 1 已准备好加入 Codex

安装:

安装位置

pet.json1.3 KB已验证
spritesheet.png1.1 MB就绪
codexpetdb:~$ npx codexpetdb install 'hsr-trailblazer-destruction-1' 正在获取经过验证的桌宠包…… SHA-256 验证通过。 pet.json 检查通过。 已安装至 ~/.codex/pets/hsr-trailblazer-destruction-1 Hsr Trailblazer The Destruction 1 已准备好加入 Codex。
桌宠包版本
r1
桌宠包大小
1.1 MB
SHA-256
741bc5a798c6e2c865724b62e53ab29dd9867b614cc228ff479b1f2c15ffcfa9

其他安装方式

选择适合你工作方式的安装路径。

curl

适用于 macOS、Linux 或 Windows 上的脚本与远程终端。

set -e
TMP="${TMPDIR:-/tmp}"
curl -fL 'https://cdn.codexpetdb.com/revisions/019fe4ed-f52e-779f-9eb5-291efbf0421e/hsr-trailblazer-destruction-1.zip' -o "$TMP/hsr-trailblazer-destruction-1.zip"
EXPECTED_SHA256='741bc5a798c6e2c865724b62e53ab29dd9867b614cc228ff479b1f2c15ffcfa9'
ACTUAL_SHA256="$(shasum -a 256 "$TMP/hsr-trailblazer-destruction-1.zip" | awk '{print $1}')"
if [ "$ACTUAL_SHA256" != "$EXPECTED_SHA256" ]; then
  rm -f "$TMP/hsr-trailblazer-destruction-1.zip"
  echo 'SHA-256 mismatch; package was not extracted.' >&2
  exit 1
fi
mkdir -p ~/.codex/pets/hsr-trailblazer-destruction-1
unzip -oq "$TMP/hsr-trailblazer-destruction-1.zip" -d ~/.codex/pets/hsr-trailblazer-destruction-1