feat: add update download handling and installation methods

This commit is contained in:
2026-04-03 16:48:26 +11:00
parent c5d011958c
commit 362ca62296
2 changed files with 6 additions and 1 deletions

2
cinny

Submodule cinny updated: 6ca8e59b0b...0ddf05746a

View File

@@ -134,6 +134,11 @@ contextBridge.exposeInMainWorld('electron', {
onUpdateDownloadProgress: (callback) => { onUpdateDownloadProgress: (callback) => {
ipcRenderer.on('update-download-progress', (_, progress) => callback(progress)); 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) // Desktop capturer (for screen sharing)