Add missing auto updater check

This commit is contained in:
Alice Gaudon 2020-04-18 14:54:32 +02:00
parent 609497fa33
commit 5b85737740

View File

@ -5,6 +5,7 @@ import {app, BrowserWindow, ipcMain, Menu, shell, Tray} from "electron";
import Meta from "./Meta";
import Config from "./Config";
import Service from "./Service";
import { autoUpdater } from "electron-updater";
const resourcesDir = path.resolve(__dirname, '../resources');
const iconPath = path.resolve(resourcesDir, 'logo.png');
@ -36,6 +37,11 @@ function toggleMainWindow() {
}
function createWindow() {
// Check for updates on windows and mac
if (process.platform === 'win32' || process.platform === 'darwin') {
autoUpdater.checkForUpdatesAndNotify();
}
// System tray
console.log('Loading system Tray');
tray = new Tray(iconPath);