diff --git a/src/AppMenu.tsx b/src/AppMenu.tsx index 7759ba7683..5595b6cd3b 100644 --- a/src/AppMenu.tsx +++ b/src/AppMenu.tsx @@ -26,6 +26,7 @@ import { toast } from "react-toastify"; import { dialog, invoke, path } from "@tauri-apps/api"; import SettingsModal from "./components/config/SettingsModal"; +import { version } from "./util/version"; type Props = {}; @@ -118,7 +119,7 @@ class AppMenu extends Component { - Choreo + Choreo v{version} {/* Document Settings (open the robot config, etc modal) */} diff --git a/src/util/version.ts b/src/util/version.ts new file mode 100644 index 0000000000..9431499e3c --- /dev/null +++ b/src/util/version.ts @@ -0,0 +1,5 @@ +import { getVersion } from "@tauri-apps/api/app"; + +export let version: string = "unknown"; + +getVersion().then((v) => (version = v));