From 362ca6229664a638236791af0ca6d6762cfbef3b Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 3 Apr 2026 16:48:26 +1100 Subject: [PATCH] feat: add update download handling and installation methods --- cinny | 2 +- electron/preload.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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)