fix: update ipc handle to retrieve update information
This commit is contained in:
parent
22d2ff1518
commit
494d52ac85
@ -80,9 +80,10 @@ export function registerIpc(mainWindow: BrowserWindow, app: Electron.App) {
|
|||||||
|
|
||||||
// check for update
|
// check for update
|
||||||
ipcMain.handle('app:check-for-update', async () => {
|
ipcMain.handle('app:check-for-update', async () => {
|
||||||
|
const update = await autoUpdater.checkForUpdates()
|
||||||
return {
|
return {
|
||||||
currentVersion: autoUpdater.currentVersion,
|
currentVersion: autoUpdater.currentVersion,
|
||||||
update: await autoUpdater.checkForUpdates()
|
updateInfo: update?.updateInfo
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user