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:
parent
feeabe147c
commit
c2942737bd
4 changed files with 94 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue