mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: improve aria2x download path detection
This commit is contained in:
parent
0e88300747
commit
90cb35db40
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue