|
|
|
@ -11,7 +11,7 @@ const initialize = (window) => {
|
|
|
|
|
const webContents = window.webContents; |
|
|
|
|
const send = webContents.send.bind(window.webContents); |
|
|
|
|
autoUpdater.on('checking-for-update', (event) => send('autoUpdater:checking-for-update')); |
|
|
|
|
autoUpdater.on('update-downloaded', (event, ...args) => send('autoUpdater:update-downloaded', ...args)); |
|
|
|
|
autoUpdater.on('update-downloaded', (...args) => send('autoUpdater:update-downloaded', ...args)); |
|
|
|
|
ipcMain.on('autoUpdater:quit-and-install', (event) => autoUpdater.quitAndInstall()); |
|
|
|
|
ipcMain.on('autoUpdater:check-for-updates', (event) => autoUpdater.checkForUpdates()); |
|
|
|
|
}; |
|
|
|
|