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", "name": "hydralauncher",
"version": "1.2.3", "version": "1.2.4",
"description": "Hydra", "description": "Hydra",
"main": "./out/main/index.js", "main": "./out/main/index.js",
"author": "Los Broxas", "author": "Los Broxas",

View File

@ -18,9 +18,13 @@ const mockValuesForDebug = () => {
}; };
const checkForUpdates = async (_event: Electron.IpcMainInvokeEvent) => { const checkForUpdates = async (_event: Electron.IpcMainInvokeEvent) => {
autoUpdater.once("update-available", (info: UpdateInfo) => { autoUpdater
sendEvent({ type: "update-available", info }); .once("update-available", (info: UpdateInfo) => {
}); sendEvent({ type: "update-available", info });
})
.once("update-downloaded", () => {
sendEvent({ type: "update-downloaded" });
});
if (app.isPackaged) { if (app.isPackaged) {
autoUpdater.checkForUpdates(); autoUpdater.checkForUpdates();

View File

@ -12,7 +12,6 @@ import {
import { dataSource } from "@main/data-source"; import { dataSource } from "@main/data-source";
import * as resources from "@locales"; import * as resources from "@locales";
import { userPreferencesRepository } from "@main/repository"; import { userPreferencesRepository } from "@main/repository";
import { logsPath } from "./constants";
const { autoUpdater } = updater; const { autoUpdater } = updater;
autoUpdater.setFeedURL({ autoUpdater.setFeedURL({
@ -24,8 +23,6 @@ autoUpdater.setFeedURL({
autoUpdater.logger = logger; autoUpdater.logger = logger;
console.log = logger.info; console.log = logger.info;
console.log("logsPath:", logsPath);
const gotTheLock = app.requestSingleInstanceLock(); const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) app.quit(); if (!gotTheLock) app.quit();