fix: fixing named pipes on windows

This commit is contained in:
Chubby Granny Chaser
2024-05-13 22:01:34 +01:00
parent c71eeb2b9b
commit 820cf65d13
5 changed files with 25 additions and 20 deletions

View File

@@ -124,21 +124,20 @@ export class TorrentDownloader extends Downloader {
stdio: "inherit",
windowsHide: true,
});
return;
} else {
const scriptPath = path.join(
__dirname,
"..",
"..",
"torrent-client",
"main.py"
);
cp.spawn("python3", [scriptPath, ...commonArgs], {
stdio: "inherit",
});
}
const scriptPath = path.join(
__dirname,
"..",
"..",
"torrent-client",
"main.py"
);
cp.spawn("python3", [scriptPath, ...commonArgs], {
stdio: "inherit",
});
Promise.all([writePipe.createPipe(), readPipe.createPipe()]).then(
async () => {
this.attachListener();

View File

@@ -29,7 +29,7 @@ export const getSteamGridData = async (
const searchParams = new URLSearchParams(params);
if (!import.meta.env.MAIN_VITE_STEAMGRIDDB_API_KEY) {
throw new Error("STEAMGRIDDB_API_KEY is not set");
throw new Error("MAIN_VITE_STEAMGRIDDB_API_KEY is not set");
}
const response = await axios.get(