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

@@ -12,7 +12,7 @@ async function createMainWindow() {
return mainWindow;
}
mainWindow = new BrowserWindow({
const windowOptions = {
title: `Freedom Loader ${config.version}`,
width: 750,
height: 800,
@@ -26,7 +26,9 @@ async function createMainWindow() {
contextIsolation: true,
preload: path.join(__dirname, "../preload.js"),
},
});
};
mainWindow = new BrowserWindow(windowOptions);
try {
await mainWindow.loadURL(`http://localhost:${config.applicationPort}`);