fix: 发布 1.1.29,更新下载不再把 GitHub 302 当成失败

- 安装包里的 1.1.26 仍用 fetch 拉 github.com/archive,宿主不跟随 302 就报 http 302,切换失败所以版本一直停在旧的
- 下载改走 Node https,302 读 Location;没有 Location 时把 archive 地址改写成 codeload
- 自动更新只跟版本号,并在安装前写 stamp,避免 add --force 重启后再次更新
- 钉住的标签只标一条为当前

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-09-28 15:39:34 +08:00
1 parent 6075a782bf
commit 5b1040c65c
5 files changed
+172 -43

No files matched your search

+2 -1
View File
@@ -24,7 +24,8 @@ let bootFullQuit = false;
const DEFAULTS = {
enabled: true,
autoApplyOnStart: true,
autoUpdateOnStart: true,
// 默认关闭开机自动更新:曾因 stamp/SHA 误判触发 dsh add --force 无限重启。
autoUpdateOnStart: false,
autoRevertOnMissing: false,
injectOnce: false,
stripMnemon: true,