From 55c17f576055b246610c2cf8d4a66bbb9c1a4fab Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Thu, 5 Dec 2024 14:05:34 -0500 Subject: [PATCH] pull version from Tauri build info --- src/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 7979751..4723cc7 100644 --- a/src/main.js +++ b/src/main.js @@ -14,6 +14,7 @@ const { const { documentDir, join } = window.__TAURI__.path; const { Menu, MenuItem, Submenu } = window.__TAURI__.menu ; const { getCurrentWindow } = window.__TAURI__.window; +const { getVersion } = window.__TAURI__.app; const macOS = navigator.userAgent.includes('Macintosh') @@ -3024,14 +3025,15 @@ async function updateMenu() { }, ] }); + console.log(Submenu) const helpSubmenu = await Submenu.new({ text: "Help", items: [ { text: "About...", enabled: true, - action: () => { - messageDialog(`Lightningbeam version ${appVersion}\nDeveloped by Skyler Lehmkuhl`, + action: async () => { + messageDialog(`Lightningbeam version ${await getVersion()}\nDeveloped by Skyler Lehmkuhl`, {title: 'About', kind: "info"} ) }