diff --git a/package.json b/package.json index 8720d3a2..99962918 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hydralauncher", - "version": "1.2.3", + "version": "1.2.4", "description": "Hydra", "main": "./out/main/index.js", "author": "Los Broxas", diff --git a/src/main/events/autoupdater/check-for-updates.ts b/src/main/events/autoupdater/check-for-updates.ts index 5d10b7dd..eb8b44ff 100644 --- a/src/main/events/autoupdater/check-for-updates.ts +++ b/src/main/events/autoupdater/check-for-updates.ts @@ -18,9 +18,13 @@ const mockValuesForDebug = () => { }; const checkForUpdates = async (_event: Electron.IpcMainInvokeEvent) => { - autoUpdater.once("update-available", (info: UpdateInfo) => { - sendEvent({ type: "update-available", info }); - }); + autoUpdater + .once("update-available", (info: UpdateInfo) => { + sendEvent({ type: "update-available", info }); + }) + .once("update-downloaded", () => { + sendEvent({ type: "update-downloaded" }); + }); if (app.isPackaged) { autoUpdater.checkForUpdates(); diff --git a/src/main/index.ts b/src/main/index.ts index cea2723a..513468a3 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -12,7 +12,6 @@ import { import { dataSource } from "@main/data-source"; import * as resources from "@locales"; import { userPreferencesRepository } from "@main/repository"; -import { logsPath } from "./constants"; const { autoUpdater } = updater; autoUpdater.setFeedURL({ @@ -24,8 +23,6 @@ autoUpdater.setFeedURL({ autoUpdater.logger = logger; console.log = logger.info; -console.log("logsPath:", logsPath); - const gotTheLock = app.requestSingleInstanceLock(); if (!gotTheLock) app.quit();