Auto Update with electron-updater (WIP) #808

Merged
alexliebowitz merged 36 commits from auto-update into master 2018-01-24 23:51:49 +01:00
Showing only changes of commit 565f411986 - Show all commits

View file

@ -436,6 +436,9 @@ app.on('before-quit', event => {
shutdownDaemonAndQuit();
} else {
console.log('Quitting.');
if (autoUpdating) {
minimize = false;
}
}
});
@ -522,6 +525,11 @@ ipcMain.on('version-info-requested', () => {
});
});
ipcMain.on('autoUpdate', () => {
minimize = false;
autoUpdater.quitAndInstall();
});
ipcMain.on('get-auth-token', event => {
Keytar.getPassword('LBRY', 'auth_token').then(token => {
event.sender.send('auth-token-response', token ? token.toString().trim() : null);