revert changes for debug

This commit is contained in:
Zamitto 2024-05-31 15:35:30 -03:00
parent 2038bd1fbe
commit 227eb6ff2d
3 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "hydralauncher",
"version": "1.2.3",
"version": "1.2.4",
"description": "Hydra",
"main": "./out/main/index.js",
"author": "Los Broxas",

View File

@ -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();

View File

@ -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();