Skip to content

Commit c6e169e

Browse files
authored
Enable / Disable Bleeding Edge Libraries in download_libs (#7688)
1 parent f9f6444 commit c6e169e

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

scripts/dev/download_libs.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PLATFORM=""
55
ARCH=""
66
OVERWRITE=1
77
SILENT_ARGS=""
8+
BLEEDING_EDGE=0
89

910
printHelp(){
1011
cat << EOF
@@ -34,8 +35,13 @@ if [[ ! -d "$SCRIPT_DIR" ]]; then SCRIPT_DIR="$PWD"; fi
3435
download(){
3536
echo "Downloading $1"
3637
# downloader ci.openframeworks.cc/libs/$1 $SILENT_ARGS
37-
echo downloader https://github.com/openframeworks/apothecary/releases/download/nightly/$1 $SILENT_ARGS
38-
downloader https://github.com/openframeworks/apothecary/releases/download/nightly/$1 $SILENT_ARGS
38+
if [[ $BLEEDING_EDGE = 1 ]] ; then
39+
echo downloader https://github.com/openframeworks/apothecary/releases/download/bleeding/$1 $SILENT_ARGS
40+
downloader https://github.com/openframeworks/apothecary/releases/download/bleeding/$1 $SILENT_ARGS
41+
else
42+
echo downloader https://github.com/openframeworks/apothecary/releases/download/nightly/$1 $SILENT_ARGS
43+
downloader https://github.com/openframeworks/apothecary/releases/download/nightly/$1 $SILENT_ARGS
44+
fi
3945
}
4046

4147
# trap any script errors and exit
@@ -79,6 +85,9 @@ while [[ $# -gt 0 ]]; do
7985
-n|--no-overwrite)
8086
OVERWRITE=0
8187
;;
88+
-b|--bleeding-edge)
89+
BLEEDING_EDGE=1
90+
;;
8291
-s|--silent)
8392
SILENT_ARGS=-nv
8493
;;

0 commit comments

Comments
 (0)