fix(update): launch installers after the current app exits

This commit is contained in:
Sucukdeluxe
2026-08-21 02:35:53 +02:00
parent da4b6f295c
commit ce75012110
10 changed files with 203 additions and 27 deletions
+8
View File
@@ -65,6 +65,14 @@ describe("desktop shell", () => {
expect(sparklineBlock).toContain("window.setInterval(tick, 750)");
});
it("quits promptly after handing the update to the deferred installer launcher", () => {
const source = readFileSync(new URL("../src/main/main.ts", import.meta.url), "utf8");
const install = source.slice(source.indexOf("handleTrusted(IPC_CHANNELS.INSTALL_UPDATE"), source.indexOf("handleTrusted(IPC_CHANNELS.OPEN_EXTERNAL"));
expect(install).toContain("}, 250)");
expect(install).not.toContain("}, 5000)");
});
it("does not let live download snapshots overwrite the local column order", () => {
const source = readFileSync(new URL("../src/renderer/App.tsx", import.meta.url), "utf8");
const stateUpdates = source.slice(source.indexOf("unsubscribe = window.rd.onStateUpdate"), source.indexOf("unsubClipboard = window.rd.onClipboardDetected"));