From c5853a6e9b09fddbb53adccf6e36f0c562ed4e7e Mon Sep 17 00:00:00 2001 From: Christoph Brandau Date: Tue, 30 Jun 2026 16:56:17 +0200 Subject: [PATCH] Add in-app updater functionality --- src/App.svelte | 100 +++++++++++++++ src/app.css | 178 ++++++++++++++++++++++++++ src/lib/components/UpdateToast.svelte | 147 +++++++++++++++++++++ 3 files changed, 425 insertions(+) create mode 100644 src/lib/components/UpdateToast.svelte diff --git a/src/App.svelte b/src/App.svelte index 4dca571..fca7b05 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,6 +1,7 @@ + +
+ + +
+ {#if state === "downloading"} +
+ +
+
+
+ {versionLabel} +

{title}

+
+ + {#if !isBusy} + + {/if} +
+ +

{description}

+ + {#if showProgress} +
+ +
+
+ {state === "installed" ? "100% complete" : clampedProgress > 0 ? `${clampedProgress}%` : "Waiting for download size"} +
+ {/if} + +
+ {#if state === "installed"} + + {:else if state === "error"} + + + {:else} + + + {/if} +
+
+