From 7363cf7db5bd58cd75c7d991bbac4545c56af94f Mon Sep 17 00:00:00 2001
From: HsiangNianian <i@jyunko.cn>
Date: Tue, 13 Jan 2026 20:04:17 +0800
Subject: feat: integrate version retrieval and display in the app

---
 ui/src/App.svelte | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'ui/src/App.svelte')

diff --git a/ui/src/App.svelte b/ui/src/App.svelte
index beb3403..9e9d220 100644
--- a/ui/src/App.svelte
+++ b/ui/src/App.svelte
@@ -1,5 +1,6 @@
 <script lang="ts">
   import { invoke } from "@tauri-apps/api/core";
+  import { getVersion } from "@tauri-apps/api/app";
   import { open } from "@tauri-apps/plugin-shell";
   import { onMount } from "svelte";
   import DownloadMonitor from "./lib/DownloadMonitor.svelte";
@@ -9,6 +10,7 @@
   let showConsole = false;
   let currentView = "home";
   let statusTimeout: any;
+  let appVersion = "...";
 
   // Watch for status changes to auto-dismiss
   $: if (status !== "Ready") {
@@ -70,6 +72,7 @@
   onMount(async () => {
     checkAccount();
     loadSettings();
+    getVersion().then((v) => (appVersion = v));
     try {
       versions = await invoke("get_versions");
       if (versions.length > 0) {
@@ -330,7 +333,7 @@
     <div
       class="p-4 w-full border-t border-zinc-800 flex justify-center lg:justify-start"
     >
-      <div class="text-xs text-zinc-600 font-mono">v0.1.3</div>
+      <div class="text-xs text-zinc-600 font-mono">v{appVersion}</div>
     </div>
   </aside>
 
-- 
cgit v1.2.3-70-g09d2

