feat: adding libtorrent again

This commit is contained in:
Chubby Granny Chaser
2024-06-27 14:51:13 +01:00
parent 11dffd1b7a
commit 63c13e17cb
18 changed files with 1265 additions and 1208 deletions

View File

@@ -1,20 +0,0 @@
import path from "node:path";
import { spawn } from "node:child_process";
import { app } from "electron";
export const startAria2 = () => {
const binaryPath = app.isPackaged
? path.join(process.resourcesPath, "aria2", "aria2c")
: path.join(__dirname, "..", "..", "aria2", "aria2c");
return spawn(
binaryPath,
[
"--enable-rpc",
"--rpc-listen-all",
"--file-allocation=none",
"--allow-overwrite=true",
],
{ stdio: "inherit", windowsHide: true }
);
};