From 37a029d1c6b0eb73d3c77fcc2f79ff1032ab34f1 Mon Sep 17 00:00:00 2001 From: Developer Date: Wed, 8 Apr 2026 13:45:44 -0700 Subject: [PATCH] Show app version from Tauri instead of sidecar The version label was reading from backendStore.version which comes from the sidecar's version.py (hardcoded at build time). Now uses Tauri's getVersion() API which reads from tauri.conf.json -- the actual app version that gets bumped by the release workflow. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/App.svelte | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index 7ba9acb..c8a0cfe 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -15,6 +15,7 @@ let sidecarState = $state("checking"); let debugLog = $state(""); let availableUpdate = $state(""); + let appVersion = $state(""); let obsDisplayUrl = $derived(backendStore.obsUrl); let syncDisplayUrl = $derived(backendStore.syncUrl); @@ -108,6 +109,14 @@ } onMount(() => { + // Get app version from Tauri + import("@tauri-apps/api/app").then(({ getVersion }) => + getVersion().then((v) => { appVersion = v; }) + ).catch(() => { + // Browser dev mode -- read from package.json or use fallback + appVersion = "dev"; + }); + checkAndLaunchSidecar(); return () => { @@ -201,7 +210,7 @@ -
v{backendStore.version}
+
v{appVersion || backendStore.version}
{#if showSettings}