fix(updater): preserve recovery consistency across interrupted updates

Keep health checks, rollback reporting, launcher recovery, and download failure handling consistent so verified updates cannot report false success or crash during recoverable I/O failures.
This commit is contained in:
OddTurtleHead committed 2026-11-25 23:51:16 +08:00
1 parent 6273185afa
commit cf1cc9fb94
9 files changed
+325 -46

No files matched your search

+1
View File
@@ -143,6 +143,7 @@ export function createPackageFiles(root: string, version: string, extra: Record<
writeFileSync(path.join(root, "dist", "index.js"), "// package entry\n", "utf8");
writeFileSync(path.join(root, "web", "dist", "index.html"), "<!doctype html>\n", "utf8");
writeFileSync(path.join(root, "runtime", "node"), "#!/bin/sh\nexit 0\n", { encoding: "utf8", mode: 0o755 });
writeFileSync(path.join(root, "start-webspeak.sh"), "#!/bin/sh\nexit 0\n", { encoding: "utf8", mode: 0o755 });
for (const [relative, contents] of Object.entries(extra)) {
const target = path.join(root, relative);
mkdirSync(path.dirname(target), { recursive: true });