Add auto updater

This commit is contained in:
2026-03-10 23:38:57 +01:00
parent e8e5c24600
commit c3fbd7d4fe
20 changed files with 2272 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
import { app, BrowserWindow } from 'electron';
import { cleanupLinuxScreenShareAudioRouting } from '../audio/linux-screen-share-routing';
import { initializeDesktopUpdater, shutdownDesktopUpdater } from '../update/desktop-updater';
import {
initializeDatabase,
destroyDatabase,
@@ -23,6 +24,7 @@ export function registerAppLifecycle(): void {
setupCqrsHandlers();
setupWindowControlHandlers();
setupSystemHandlers();
initializeDesktopUpdater();
await createWindow();
app.on('activate', () => {
@@ -39,6 +41,7 @@ export function registerAppLifecycle(): void {
app.on('before-quit', async (event) => {
if (getDataSource()?.isInitialized) {
event.preventDefault();
shutdownDesktopUpdater();
await cleanupLinuxScreenShareAudioRouting();
await destroyDatabase();
app.quit();