heynote/electron/main/version.js
Jonatan Heyman 295e55552b Add version number to settings dialog.
For the web app we also display the git hash.
2024-01-12 15:09:13 +01:00

13 lines
334 B
JavaScript

import { app, ipcMain } from "electron"
import CONFIG from "../config"
export function getVersionString() {
let versionString = app.getVersion()
if (CONFIG.get("settings.allowBetaVersions")) {
versionString += " (beta channel)"
}
return versionString
}
ipcMain.handle("getVersion", () => getVersionString())