Skip to content

Commit

Permalink
TEMP: test code for electron-updater
Browse files Browse the repository at this point in the history
  • Loading branch information
alexliebowitz committed Dec 4, 2017
1 parent 99d814d commit 732b2bf
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,4 +559,21 @@ ipcMain.on('get-auth-token', (event) => {

ipcMain.on('set-auth-token', (event, token) => {
keytar.setPassword("LBRY", "auth_token", token ? token.toString().trim() : null);
});
});

autoUpdater.logger = log;
autoUpdater.on('checking-for-update', () => {
log.log("Currently checking")
});
autoUpdater.on('update-available', () => {
log.log("Update is available")
});
autoUpdater.on('update-not-available', () => {
log.log("Update is not available")
});
autoUpdater.on('update-downloaded', () => {
log.log("Update downloaded")
});
autoUpdater.checkForUpdates().then((result) => {
log.log("Result from autoUpdater.checkForUpdates: " + JSON.stringify(result));
});

0 comments on commit 732b2bf

Please sign in to comment.