Add auto-update functionality for Electron app

- Integrated `electron-updater` dependency for managing app updates.
- Configured publishing settings with a generic provider and download URL.
- Added `initAutoUpdater` method to handle app updates and implemented it in the main process.
- Updated `package.json` and `package-lock.json` to include `electron-updater` and related dependencies.
This commit is contained in:
natreex
2026-01-15 20:00:25 -05:00
parent da03f221ae
commit 0020b3abbd
3 changed files with 105 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ import {DatabaseService, getDatabaseService} from './database/database.service.j
import SecureStorage, {getSecureStorage} from './storage/SecureStorage.js';
import {getUserEncryptionKey, hasUserEncryptionKey, setUserEncryptionKey} from './database/keyManager.js';
import {generateUserEncryptionKey} from './database/encryption.js';
import {initAutoUpdater} from './autoUpdater.js';
// Import IPC handlers
import './ipc/book.ipc.js';
@@ -144,6 +145,7 @@ function createMainWindow(): void {
mainWindow.once('ready-to-show', () => {
mainWindow?.show();
initAutoUpdater(mainWindow);
});
mainWindow.on('closed', () => {