WIP: showing splash screen

This commit is contained in:
Zamitto 2024-05-18 22:29:11 -03:00
parent 7eee942dcb
commit 484e79dba3
10 changed files with 79 additions and 29 deletions

View file

@ -7,7 +7,7 @@ import { resolveDatabaseUpdates, WindowManager } from "@main/services";
import { dataSource } from "@main/data-source";
import * as resources from "@locales";
import { userPreferencesRepository } from "@main/repository";
import electronLog from "electron-log";
const { autoUpdater } = updater;
autoUpdater.setFeedURL({
@ -16,6 +16,9 @@ autoUpdater.setFeedURL({
repo: "hydra",
});
autoUpdater.logger = electronLog;
autoUpdater.logger.transports.file.level = "info";
const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) app.quit();
@ -72,8 +75,8 @@ app.whenReady().then(() => {
autoUpdater.checkForUpdates().then((r) => {
console.log(r);
WindowManager.splashWindow?.close();
WindowManager.createMainWindow();
//WindowManager.splashWindow?.close();
//WindowManager.createMainWindow();
});
});
});