diff --git a/src/manager/tabs/AboutTab.tsx b/src/manager/tabs/AboutTab.tsx index 6f3baf80..f12e74b3 100644 --- a/src/manager/tabs/AboutTab.tsx +++ b/src/manager/tabs/AboutTab.tsx @@ -33,7 +33,7 @@ const AboutTab = () => { Version - 0.0.1 + {__VERSION__} Authors diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 11f02fe2..b63e0333 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -1 +1,3 @@ /// + +declare const __VERSION__: string; diff --git a/src/vite.config.ts b/src/vite.config.ts index 4f172cdb..f535cbc4 100644 --- a/src/vite.config.ts +++ b/src/vite.config.ts @@ -1,8 +1,12 @@ import { defineConfig } from "vite"; import { resolve } from "path"; import react from "@vitejs/plugin-react"; +import tauriConf from "../crates/deskulpt/tauri.conf.json"; export default defineConfig({ + define: { + __VERSION__: JSON.stringify(tauriConf.version), + }, plugins: [ react({ jsxImportSource: "@emotion/react",