fix: 补丁 rc.2/rc.5 双版本适配,版本 1.1.88

This commit is contained in:
叫我小杨同学 committed 2026-11-02 01:31:15 +08:00
1 parent 335ddee90f
commit d1eff01eb6
4 files changed
+240 -37

No files matched your search

+7
View File
@@ -2,6 +2,7 @@
import * as core from "../lib/core.js";
import * as rules from "../lib/rules.js";
import * as reapply from "../lib/reapply.js";
const args = process.argv.slice(2);
@@ -104,6 +105,12 @@ async function main() {
console.log(`✗ 完成但有 ${failed.length} 个补丁失败 / finished with ${failed.length} failed patch(es)`);
process.exit(1);
}
// 面板点应用会打戳;CLI 也要打,否则下次启动 settle 以为没对齐又重打一遍(#202)。
try {
reapply.markPatchesApplied();
} catch (e) {
console.log(` ⚠ 写入应用记录失败 / failed to write applied stamp: ${e && e.message ? e.message : e}`);
}
console.log("全部完成 / All done。重启 dsh 生效 / Restart dsh to take effect.");
} else if (mode === "--revert") {
if (state.ai_base || core.enumeratePatchAiBases().length) {