feat: 发布热更 1.5.94,修复中转历史会话并支持一键清空
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user