mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 19:22:28 +00:00
remove step to install aria2
This commit is contained in:
parent
2a02936648
commit
5f292bc53a
2 changed files with 3 additions and 4 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -19,10 +19,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 20.11.1
|
node-version: 20.11.1
|
||||||
|
|
||||||
- name: Install aria2 on Mac
|
|
||||||
if: matrix.os == 'macos-latest'
|
|
||||||
run: brew install aria2
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,8 @@ const downloadAria2WindowsAndLinux = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const copyAria2Macos = async () => {
|
const copyAria2Macos = async () => {
|
||||||
|
console.log("Checking if aria2 is installed...");
|
||||||
|
|
||||||
const isAria2Installed = spawnSync("which", ["aria2c"]).status;
|
const isAria2Installed = spawnSync("which", ["aria2c"]).status;
|
||||||
|
|
||||||
if (isAria2Installed != 0) {
|
if (isAria2Installed != 0) {
|
||||||
|
@ -57,6 +59,7 @@ const copyAria2Macos = async () => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("Copying aria2 binary...");
|
||||||
fs.mkdirSync("aria2");
|
fs.mkdirSync("aria2");
|
||||||
await exec(`cp $(which aria2c) aria2/aria2c`);
|
await exec(`cp $(which aria2c) aria2/aria2c`);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue