feat(desktop): show the installed app's own version in the UI
Build desktop / desktop (push) Successful in 4m47s
Build & push images / images (push) Successful in 2m54s
CI / check (push) Successful in 42s

Nothing displayed which desktop build was actually installed — debugging
a stuck update meant inferring the current version backwards from the
update prompt's target version. Added DesktopVersionBadge (next to the
existing server-side VersionBadge) using @tauri-apps/api's getVersion(),
the real running app version baked in from tauri.conf.json. No-ops in a
browser. Exported inTauri() from origin.ts instead of redefining it again.
This commit is contained in:
2026-09-03 16:31:48 +02:00
parent 7804285dec
commit 56904422af
6 changed files with 50 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ export function wsUrl(path: string): string {
}
/** True when running inside the Tauri webview (not a normal browser). */
function inTauri(): boolean {
export function inTauri(): boolean {
return typeof window !== "undefined" && "__TAURI_INTERNALS__" in window;
}