Add updater to apps
This commit is contained in:
parent
a4a2ada99b
commit
ad805b91c0
2 changed files with 71 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue