mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
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:
1 parent
6273185afa
commit
cf1cc9fb94
9 files changed
+325
-46
No files matched your search
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user