feat: 发布热更 1.5.94,修复中转历史会话并支持一键清空

This commit is contained in:
mac
2026-09-11 09:06:41 +08:00
parent 0446d09b3b
commit a74576c3e1
28 changed files with 3217 additions and 155 deletions
+7
View File
@@ -64,11 +64,18 @@ function evaluate(manifest, appVersion, bundledHotVersion, hotBase) {
const newer = cmp(manifest.contentVersion, effective) > 0;
const minOk = cmp(appVersion, manifest.minAppVersion || "0") >= 0;
const needFull = !!manifest.requiresFull || !minOk;
const fullAppVersion = manifest.fullAppVersion || "";
// 兼容协议注册等必须由完整安装包完成的场景:
// 旧版先安装热更,热更生效后再引导安装同版本完整包。
const needFullAfterHot = !!manifest.requiresFullAfterHot &&
(!fullAppVersion || cmp(appVersion, fullAppVersion) < 0);
return {
hasHot: newer,
needFull: newer && needFull, // 有新内容但当前原生版本不够 → 必须下完整包
canHot: newer && minOk && !manifest.requiresFull,
needFullAfterHot,
contentVersion: manifest.contentVersion,
fullAppVersion: fullAppVersion || null,
minAppVersion: manifest.minAppVersion || null,
notes: manifest.notes || "",
mandatory: !!manifest.mandatory,