mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
remove log and undo release change
This commit is contained in:
parent
1494d64da4
commit
b7a61f4567
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
os: [windows-latest, ubuntu-latest]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
@ -1,26 +1,20 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { spawn } from "node:child_process";
|
import { spawn } from "node:child_process";
|
||||||
import { app } from "electron";
|
import { app } from "electron";
|
||||||
import { logger } from "./logger";
|
|
||||||
|
|
||||||
export const startAria2 = () => {
|
export const startAria2 = () => {
|
||||||
const binaryPath = app.isPackaged
|
const binaryPath = app.isPackaged
|
||||||
? path.join(process.resourcesPath, "aria2", "aria2c")
|
? path.join(process.resourcesPath, "aria2", "aria2c")
|
||||||
: path.join(__dirname, "..", "..", "aria2", "aria2c");
|
: path.join(__dirname, "..", "..", "aria2", "aria2c");
|
||||||
|
|
||||||
logger.log("starting aria2 at:", binaryPath);
|
return spawn(
|
||||||
|
binaryPath,
|
||||||
const cp = spawn(binaryPath, [
|
[
|
||||||
"--enable-rpc",
|
"--enable-rpc",
|
||||||
"--rpc-listen-all",
|
"--rpc-listen-all",
|
||||||
"--file-allocation=none",
|
"--file-allocation=none",
|
||||||
"--allow-overwrite=true",
|
"--allow-overwrite=true",
|
||||||
]);
|
],
|
||||||
|
{ stdio: "inherit", windowsHide: true }
|
||||||
cp.stdout?.on("data", async (data) => {
|
);
|
||||||
const msg = Buffer.from(data).toString("utf-8");
|
|
||||||
logger.info(msg);
|
|
||||||
});
|
|
||||||
|
|
||||||
return cp;
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user