Skip to content

Commit

Permalink
Update download_libs.sh - parallel downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitre committed Mar 10, 2024
1 parent 6e8819c commit 2391c4f
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions scripts/dev/download_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,21 @@ if [[ ! -d "$SCRIPT_DIR" ]]; then SCRIPT_DIR="$PWD"; fi
. "$SCRIPT_DIR/downloader.sh"

download(){
echo '-----'
echo "Downloading $1"
# downloader ci.openframeworks.cc/libs/$1 $SILENT_ARGS

COMMAND=" "
REPO="nightly"
if [[ $BLEEDING_EDGE = 1 ]] ; then
echo downloader https://github.com/openframeworks/apothecary/releases/download/bleeding/$1 $SILENT_ARGS
downloader https://github.com/openframeworks/apothecary/releases/download/bleeding/$1 $SILENT_ARGS
else
echo downloader https://github.com/openframeworks/apothecary/releases/download/nightly/$1 $SILENT_ARGS
downloader https://github.com/openframeworks/apothecary/releases/download/nightly/$1 $SILENT_ARGS
REPO="bleeding"
fi

for PKG in $1; do
COMMAND+="https://github.com/openframeworks/apothecary/releases/download/$REPO/$PKG "
done
echo $COMMAND;
downloader $COMMAND $SILENT_ARGS
}

# trap any script errors and exit
Expand Down Expand Up @@ -223,9 +229,11 @@ else # Linux
fi
fi

for PKG in $PKGS; do
download $PKG
done
# for PKG in $PKGS; do
# download $PKG
# done
# echo $PKGS
download "${PKGS[@]}"

cd ../../
mkdir -p libs
Expand Down

0 comments on commit 2391c4f

Please sign in to comment.