From 494d52ac85f7f9ca9ea3fac2509a4fd7788a8347 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Sat, 30 Nov 2024 19:57:07 +0800 Subject: [PATCH] fix: update ipc handle to retrieve update information --- src/main/ipc.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/ipc.ts b/src/main/ipc.ts index 2b1283e1..a49ebbae 100644 --- a/src/main/ipc.ts +++ b/src/main/ipc.ts @@ -80,9 +80,10 @@ export function registerIpc(mainWindow: BrowserWindow, app: Electron.App) { // check for update ipcMain.handle('app:check-for-update', async () => { + const update = await autoUpdater.checkForUpdates() return { currentVersion: autoUpdater.currentVersion, - update: await autoUpdater.checkForUpdates() + updateInfo: update?.updateInfo } })