From 5f292bc53ad659ee3b5a5ae72260ad80085beca8 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Thu, 30 May 2024 12:23:51 -0300 Subject: [PATCH] remove step to install aria2 --- .github/workflows/build.yml | 4 ---- postinstall.cjs | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28b72bcf..41759ee3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,10 +19,6 @@ jobs: with: node-version: 20.11.1 - - name: Install aria2 on Mac - if: matrix.os == 'macos-latest' - run: brew install aria2 - - name: Install dependencies run: yarn diff --git a/postinstall.cjs b/postinstall.cjs index 94ad23a4..0fb5c690 100644 --- a/postinstall.cjs +++ b/postinstall.cjs @@ -49,6 +49,8 @@ const downloadAria2WindowsAndLinux = async () => { }; const copyAria2Macos = async () => { + console.log("Checking if aria2 is installed..."); + const isAria2Installed = spawnSync("which", ["aria2c"]).status; if (isAria2Installed != 0) { @@ -57,6 +59,7 @@ const copyAria2Macos = async () => { return; } + console.log("Copying aria2 binary..."); fs.mkdirSync("aria2"); await exec(`cp $(which aria2c) aria2/aria2c`); };