Open vanowm opened 2 years ago
In dev mode electron version shown instead of application version. Perhaps the version should be pulled directly from package.json or at least let the developer override it.
package.json
For now I'm using this work around:
cons info = { icon_path: 'path/to/icon.png' app, BrowserWindow, ipcMain, } const win = openAboutWindow(info); const version = require("../package.json").version; win.webContents.once('dom-ready', () => { win.webContents.send('about-window:info', info, info.product_name, version); });
In dev mode electron version shown instead of application version. Perhaps the version should be pulled directly from
package.json
or at least let the developer override it.For now I'm using this work around: