fix: update ipc handle to retrieve update information

This commit is contained in:
kangfenmao 2024-11-30 19:57:07 +08:00
parent 22d2ff1518
commit 494d52ac85

View File

@ -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
} }
}) })