add auto update

This commit is contained in:
2022-11-26 17:37:20 -06:00
parent 5c4938458d
commit 940b366b29
2 changed files with 95 additions and 14 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
const { app, BrowserWindow, Menu, ipcMain, nativeTheme } = require('electron');
const { autoUpdater } = require('electron-updater');
const path = require('path');
const isMac = process.platform === 'darwin';
@@ -152,7 +153,7 @@ const createWindow = () => {
menuObj = Menu.buildFromTemplate(menuTemplate);
Menu.setApplicationMenu(menuObj);
autoUpdater.checkForUpdatesAndNotify();
};
app.whenReady().then(() => {