mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-12-01 03:00:22 +08:00
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:
1 parent
a576e9b817
commit
6075a782bf
5 files changed
+62
-20
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user