Add updater to apps

This commit is contained in:
Joel Collins 2019-05-28 11:59:46 +01:00
parent a4a2ada99b
commit ad805b91c0
2 changed files with 71 additions and 7 deletions

View file

@ -1,4 +1,6 @@
const { app, Menu } = require('electron')
const updater = require("electron-updater");
const autoUpdater = updater.autoUpdater;
const path = require('path')
const openAboutWindow = require('about-window').default
@ -47,6 +49,12 @@ const template = [
homepage: "https://gitlab.com/openflexure/openflexure-microscope-jsclient",
})
}
},
{
label: 'Check for Updates',
click () {
autoUpdater.checkForUpdates();
}
}
]
}