@steinscheng/zhaotongkuan 0.8.1 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +3 -2
- package/src/cli.js +4 -2
- package/src/release-channel.json +3 -3
package/README.md
CHANGED
|
@@ -29,6 +29,6 @@ npx @steinscheng/zhaotongkuan@latest install \
|
|
|
29
29
|
|
|
30
30
|
必须由发行方通过独立可信渠道提供 `--expected-sha256`。不要从和 ZIP 同一个未验证页面临时复制哈希。
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
支持 Windows 10/11、macOS 或 Linux(x64/arm64),需要 Node.js 18.18+ 和 Python 3.10+。第一阶段使用 Python 运行已审计的安装事务;引导器不会安装系统级 Python、FFmpeg 或 Codex。Windows 可使用 `scripts/install.cmd`、`scripts/start.cmd` 和 `scripts/ztk.cmd`,macOS/Linux 继续使用对应 `.command` 入口。
|
|
33
33
|
|
|
34
|
-
若机器同时保留系统旧版 Python 和新版 Python,可用 `--python
|
|
34
|
+
若机器同时保留系统旧版 Python 和新版 Python,可用 `--python <Python可执行文件绝对路径>` 显式指定;Windows 会识别 `python.exe`/`py`,macOS 引导器也会检查 Homebrew 的标准安装位置。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steinscheng/zhaotongkuan",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Small, verifiable installer bootstrap for the Zhaotongkuan Codex plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"os": [
|
|
25
25
|
"darwin",
|
|
26
|
-
"linux"
|
|
26
|
+
"linux",
|
|
27
|
+
"win32"
|
|
27
28
|
],
|
|
28
29
|
"cpu": [
|
|
29
30
|
"x64",
|
package/src/cli.js
CHANGED
|
@@ -37,7 +37,7 @@ function cleanText(value, label) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export function normalizeTarget(platform = process.platform, arch = process.arch) {
|
|
40
|
-
const platforms = { darwin: "darwin", linux: "linux" };
|
|
40
|
+
const platforms = { darwin: "darwin", linux: "linux", win32: "windows" };
|
|
41
41
|
const architectures = { x64: "amd64", arm64: "arm64" };
|
|
42
42
|
if (!platforms[platform] || !architectures[arch]) {
|
|
43
43
|
throw new BootstrapError(`unsupported platform: ${platform}/${arch}`, "unsupported_platform");
|
|
@@ -205,6 +205,8 @@ export function findPython(preferred = "", candidates) {
|
|
|
205
205
|
"/opt/homebrew/bin/python3",
|
|
206
206
|
"/usr/local/bin/python3",
|
|
207
207
|
"/usr/bin/python3",
|
|
208
|
+
"python.exe",
|
|
209
|
+
"py",
|
|
208
210
|
"python",
|
|
209
211
|
];
|
|
210
212
|
for (const value of values) {
|
|
@@ -369,7 +371,7 @@ export function sanitizeForJson(value, key = "", depth = 0) {
|
|
|
369
371
|
}
|
|
370
372
|
|
|
371
373
|
function help() {
|
|
372
|
-
return `Usage:\n npx @steinscheng/zhaotongkuan@latest install [options]\n\nSupported hosts:\n macOS or Linux on x64/arm64\n\nOptions:\n --archive <path-or-https-url> Install an explicit release archive\n --expected-sha256 <digest> Trusted SHA-256 (required with --archive)\n --dry-run Validate without writing\n --start Start and health-check the service\n --stop-after-check Stop after a successful startup health check\n --data-dir <path> Preserve business data outside the program\n --install-root <path> Override managed program directory\n --codex-bin <path> Use an explicit Codex CLI\n --python <path> Use an explicit Python 3.10+ executable\n --json Emit one JSON object\n`;
|
|
374
|
+
return `Usage:\n npx @steinscheng/zhaotongkuan@latest install [options]\n\nSupported hosts:\n Windows, macOS, or Linux on x64/arm64\n\nOptions:\n --archive <path-or-https-url> Install an explicit release archive\n --expected-sha256 <digest> Trusted SHA-256 (required with --archive)\n --dry-run Validate without writing\n --start Start and health-check the service\n --stop-after-check Stop after a successful startup health check\n --data-dir <path> Preserve business data outside the program\n --install-root <path> Override managed program directory\n --codex-bin <path> Use an explicit Codex CLI\n --python <path> Use an explicit Python 3.10+ executable\n --json Emit one JSON object\n`;
|
|
373
375
|
}
|
|
374
376
|
|
|
375
377
|
function emitError(error, jsonMode) {
|
package/src/release-channel.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"repository": "SchengSteins/zhaotongkuan",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.4",
|
|
5
5
|
"artifacts": {
|
|
6
6
|
"any": {
|
|
7
|
-
"url": "https://github.com/SchengSteins/zhaotongkuan/releases/download/v0.8.
|
|
8
|
-
"sha256": "
|
|
7
|
+
"url": "https://github.com/SchengSteins/zhaotongkuan/releases/download/v0.8.4/zhaotongkuan-0.8.4.zip",
|
|
8
|
+
"sha256": "42b0c3911b27b595127e40ca571a4f4bf807f5d410e1f1d042fb4bcc8c257aae"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|