Add: Update-Modal mit Download-Fortschritt in Electron App

- Modal-Overlay statt Banner fuer Update-Benachrichtigung
- 3 Zustaende: Downloading (Ladeanimation), Ready (OK-Button), Error
- IPC-Events: update-available, update-ready, update-error
This commit is contained in:
Daniel 2026-03-07 14:24:59 +01:00
parent feeabe147c
commit c2942737bd
4 changed files with 94 additions and 22 deletions

View file

@ -24,6 +24,7 @@ function setupAutoUpdater() {
autoUpdater.on('update-available', () => {
console.log('[AutoUpdater] Update available, downloading...');
if (mainWindow) mainWindow.webContents.send('update-available');
});
autoUpdater.on('update-downloaded', (_event, releaseNotes, releaseName) => {
@ -42,6 +43,7 @@ function setupAutoUpdater() {
autoUpdater.on('error', (err) => {
console.error('[AutoUpdater] Error:', err.message);
if (mainWindow) mainWindow.webContents.send('update-error', err.message);
});
// Check for updates after 5 seconds, then every 30 minutes