Refactor: auto-update functionality with user prompts and download progress

This commit is contained in:
MasterAcnolo
2026-04-12 16:57:39 +02:00
parent 011e0a703a
commit 75fdf91fcd
6 changed files with 106 additions and 42 deletions

View File

@@ -13,7 +13,7 @@ const { createSplashWindow, closeSplashWindow, setSplashProgress } = require("./
const path = require("path");
const { logger, logSessionStart, logSessionEnd } = require("./server/logger");
const { AutoUpdater } = require("./app/autoUpdater");
const { initAutoUpdater } = require("./app/autoUpdater");
const { startRPC, stopRPC } = require("./app/discordRPC");
const { configFeatures } = require("./config");
@@ -25,6 +25,7 @@ const { updateYtDlp } = require("./app/ytDlpUpdater");
const { createMainWindow, getMainWindow } = require("./app/windowManager");
const { registerIpcHandlers } = require("./app/ipcHandlers");
app.setName("Freedom Loader");
app.setAppUserModelId("com.masteracnolo.freedomloader");
app.disableHardwareAcceleration();
@@ -72,7 +73,7 @@ app.whenReady().then(async () => {
getMainWindow().show();
if (configFeatures.discordRPC) startRPC();
if (configFeatures.autoUpdate) AutoUpdater(getMainWindow());
if (configFeatures.autoUpdate) initAutoUpdater(getMainWindow());
} catch (err) {
logger.error("Boot error:", err);