mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
fix: improve aria2x download path detection
This commit is contained in:
@@ -107,7 +107,10 @@ const copyAria2Macos = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const copyAria2 = () => {
|
const copyAria2 = () => {
|
||||||
if (fs.existsSync("aria2")) {
|
const aria2Path =
|
||||||
|
process.platform === "win32" ? "aria2/aria2c.exe" : "aria2/aria2c";
|
||||||
|
|
||||||
|
if (fs.existsSync(aria2Path)) {
|
||||||
console.log("Aria2 already exists, skipping download...");
|
console.log("Aria2 already exists, skipping download...");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user