Skip to content

Commit

Permalink
build fixes?
Browse files Browse the repository at this point in the history
  • Loading branch information
JustJoostNL committed Nov 19, 2023
1 parent 9fb4730 commit 7317d15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/renderer/components/layouts/NavbarMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
} from "@mui/icons-material";
import MenuItem from "@mui/material/MenuItem";
import Typography from "@mui/material/Typography";
import swr from "swr";
import { green, red } from "@mui/material/colors";
import packageJson from "../../../../package.json";
//@ts-ignore
import multiviewerLogo from "../../assets/multiviewer-logo.png";

Expand All @@ -36,8 +36,9 @@ export function ThreeDotMenu() {
window.f1mvli.utils.exitApp();
}, []);

// get the version from package.json
const currentAppVersion = "v" + packageJson.version;
const appVersion = swr("appVersion", async () => {
return await window.f1mvli.appInfo.getAppVersion();
}).data;

return (
<>
Expand Down Expand Up @@ -128,7 +129,7 @@ export function ThreeDotMenu() {
padding: "0.5rem",
}}
>
Current version: {currentAppVersion}
Current version: {appVersion}
</Typography>
</Menu>
</>
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
},
"include": [
"vite.config.ts",
"package.json",
"src/main/**/*",
"src/shared/**/*",
"src/preloard/**/*",
"src/preload/**/*",
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 7317d15

Please sign in to comment.