diff --git a/cinny b/cinny index 6ca8e59..0ddf057 160000 --- a/cinny +++ b/cinny @@ -1 +1 @@ -Subproject commit 6ca8e59b0bf8e80f909860b34e28658975d4733d +Subproject commit 0ddf05746a67c4de299239bccef217b33ef5925d diff --git a/electron/preload.js b/electron/preload.js index 8d44a14..ab61dd5 100644 --- a/electron/preload.js +++ b/electron/preload.js @@ -134,6 +134,11 @@ contextBridge.exposeInMainWorld('electron', { onUpdateDownloadProgress: (callback) => { ipcRenderer.on('update-download-progress', (_, progress) => callback(progress)); }, + onUpdateDownloaded: (callback) => { + ipcRenderer.on('update-downloaded', (_, info) => callback(info)); + }, + downloadUpdate: () => ipcRenderer.invoke('download-update'), + installUpdate: () => ipcRenderer.invoke('install-update'), }, // Desktop capturer (for screen sharing)