mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
WIP: showing splash screen
This commit is contained in:
parent
7eee942dcb
commit
484e79dba3
10 changed files with 79 additions and 29 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue