add some debug logs

This commit is contained in:
Zamitto
2024-05-30 19:41:25 -03:00
parent e93f02ca76
commit 521921d90e
4 changed files with 8 additions and 6 deletions

View File

@@ -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,
[