fix: 发布 1.1.28,修更新 http 302 与测试版列表被正式号藏空

- 归档下载改直连 codeload,并手动跟随 301/302,避免 Electron 下 github.com/archive 报 http 302
- 前端 keepListedVersion 与后端一致:beta tip / beta 分支始终可见;tip SHA 失败时 raw/jsDelivr 回退

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-09-28 15:21:11 +08:00
1 parent 3f2051be7e
commit 00b4c6f93d
5 files changed
+62 -20

No files matched your search

+5 -2
View File
@@ -1714,8 +1714,11 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
function keepListedVersion(item, ceiling) {
const ver = String((item && (item.version || item.ref)) || "").replace(/^v/i, "");
if (/^1\.1\.11-beta/i.test(ver)) return false;
if (item && item.channel === "beta" && ceiling && !listedVersionNewer(ver, ceiling)) return false;
return true;
if (!item || item.channel !== "beta") return true;
// 与 lib/update.hideListedVersion 一致:测试 tip / beta 分支始终可见(并行通道)。
if (item.ref === "beta" || item.kind === "head" || item.latest) return true;
if (!ceiling) return true;
return listedVersionNewer(ver, ceiling);
}
function preferListed(list, localVer) {