mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-23 02:41:02 +00:00
add some debug logs
This commit is contained in:
@@ -12,6 +12,7 @@ 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({
|
||||
@@ -21,6 +22,9 @@ autoUpdater.setFeedURL({
|
||||
});
|
||||
|
||||
autoUpdater.logger = logger;
|
||||
console.log = logger.info;
|
||||
|
||||
console.log("logsPath:", logsPath);
|
||||
|
||||
const gotTheLock = app.requestSingleInstanceLock();
|
||||
if (!gotTheLock) app.quit();
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
import path from "node:path";
|
||||
import { spawn } from "node:child_process";
|
||||
import { app } from "electron";
|
||||
import { logger } from "./logger";
|
||||
|
||||
export const startAria2 = () => {
|
||||
const binaryPath = app.isPackaged
|
||||
? path.join(process.resourcesPath, "aria2", "aria2c")
|
||||
: path.join(__dirname, "..", "..", "aria2", "aria2c");
|
||||
|
||||
logger.log("starting aria2 at:", binaryPath);
|
||||
|
||||
return spawn(
|
||||
binaryPath,
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user