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 00b4c6f93d
commit 9504b8ab1a
5 files changed
+172 -43

No files matched your search

+18
View File
@@ -1,3 +1,21 @@
# 1.1.29
## 中文
- **修复选版本/重装后无限重启**:`dsh plugin add --force` 会先杀掉宿主,若 `installed-rev` 写在后面,下次启动又判定要更新,形成死循环。
- 自动更新改为**只跟版本号**,不再因 master SHA 漂移反复安装;更新前先写 stamp,并加 15 分钟冷却。
- 默认关闭 `autoUpdateOnStart`(可在配置里手动打开)。
- **修复更新仍报 `http 302`**:下载改用 Node `https`,`github.com/archive` 即使没有 Location 也改写成 `codeload`,不再走宿主 fetch。
- **修复切换版本后仍显示旧版本**:钉住的标签只标那一条为当前。
## English
- **Fix infinite restart after switching versions / reinstall**: `dsh plugin add --force` can kill the host before `installed-rev` is written, so the next boot thinks an update is still needed.
- Auto-update follows **version numbers only** (not floating master SHA); write the stamp before install and add a 15-minute cooldown.
- `autoUpdateOnStart` defaults to off (can still be enabled in config).
- **Fix update still failing with `http 302`**: download via Node `https`, and rewrite `github.com/archive` to `codeload` even when Location is missing.
- **Fix switch still showing the old version**: a pinned tag is the only row marked current.
# 1.1.28
## 中文