fix(release): verify-remote 支持自建 Gitea 并修 Windows tar 盘符 #6

Merged
wangheng merged 1 commits from fix/verify-remote-self-hosted into main 2026-12-02 16:41:49 +08:00
Owner

问题

verify-remote.mjs 硬编码上游 Aisland-SJL/dsh-worktable 与 github.com,
在本仓(xiaoqu/dsh-worktable)发布后无法核对远端资产——npm run verify:remote
必然失败,等于发布验收链路断了一环。

改动

  • 新增 SLARK_WT_HOST / SLARK_WT_REPO 环境变量覆盖,默认保持上游行为不变
  • tar 调用加 --force-local:Windows 上 GNU tar 把 C:\... 的盘符当成
    rsh 远端主机,报 Cannot connect to C: resolve failed

验证

SLARK_WT_HOST=https://gitea.ququclean.com SLARK_WT_REPO=xiaoqu/dsh-worktable npm run verify:remote -- --expect-sha cf633ad7… v0.5.3-local.5

输出:

[verify-remote] structure ok (7 files)
[verify-remote] version = 0.5.3-local.5
[verify-remote] fixed-name sha256: cf633ad7…
[verify-remote] versioned  sha256: cf633ad7…
[verify-remote] PASS: v0.5.3-local.5 — 文件名/结构/版本/SHA 同源+远端=验收SHA/安装/导入 全部通过
## 问题 `verify-remote.mjs` 硬编码上游 `Aisland-SJL/dsh-worktable` 与 `github.com`, 在本仓(`xiaoqu/dsh-worktable`)发布后无法核对远端资产——`npm run verify:remote` 必然失败,等于发布验收链路断了一环。 ## 改动 - 新增 `SLARK_WT_HOST` / `SLARK_WT_REPO` 环境变量覆盖,默认保持上游行为不变 - `tar` 调用加 `--force-local`:Windows 上 GNU tar 把 `C:\...` 的盘符当成 rsh 远端主机,报 `Cannot connect to C: resolve failed` ## 验证 ``` SLARK_WT_HOST=https://gitea.ququclean.com SLARK_WT_REPO=xiaoqu/dsh-worktable npm run verify:remote -- --expect-sha cf633ad7… v0.5.3-local.5 ``` 输出: ``` [verify-remote] structure ok (7 files) [verify-remote] version = 0.5.3-local.5 [verify-remote] fixed-name sha256: cf633ad7… [verify-remote] versioned sha256: cf633ad7… [verify-remote] PASS: v0.5.3-local.5 — 文件名/结构/版本/SHA 同源+远端=验收SHA/安装/导入 全部通过 ```
wangheng added 1 commit 2026-12-02 16:41:44 +08:00
verify-remote.mjs 原本硬编码上游 Aisland-SJL/dsh-worktable 与 github.com,
在本仓(xiaoqu/dsh-worktable)发布时无法核对远端。

- 新增 SLARK_WT_HOST / SLARK_WT_REPO 环境变量覆盖,默认保持上游行为
- tar 调用加 --force-local:Windows 上 GNU tar 会把 "C:\..." 的盘符
  当成 rsh 远端主机,报 Cannot connect to C: resolve failed

验证:SLARK_WT_HOST=https://gitea.ququclean.com SLARK_WT_REPO=xiaoqu/dsh-worktable
npm run verify:remote -- --expect-sha cf633ad7… v0.5.3-local.5 → PASS
(文件名/结构/版本/SHA 同源 + 远端=验收 SHA/安装/导入)
wangheng merged commit a25a23fcdb into main 2026-12-02 16:41:49 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: xiaoqu/dsh-worktable#6