mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
revert changes for debug
This commit is contained in:
parent
2038bd1fbe
commit
227eb6ff2d
@ -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",
|
||||||
|
@ -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();
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user