From d04611a764e55912ff97d12a18399d02e3b3dd12 Mon Sep 17 00:00:00 2001 From: Guard13007 Date: Thu, 20 Nov 2014 13:06:38 -0800 Subject: [PATCH] added wget/curl switch --- build | 6 +++--- config.sh | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build b/build index ae6f5ad..590c591 100644 --- a/build +++ b/build @@ -30,7 +30,7 @@ echo " Done." if [ ! -r "$win32Dir/love-0.9.1-win32/love.exe" ]; then mkdir -p "$win32Dir" echo "Downloading win32src..." - wget -nv -O "$win32Dir/love32.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-win32.zip + $download "$win32Dir/love32.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-win32.zip echo " Extracting win32src..." unzip -q "$win32Dir/love32.zip" -d "$win32Dir" echo " Done." @@ -39,7 +39,7 @@ fi if [ ! -r "$win64Dir/love-0.9.1-win64/love.exe" ]; then mkdir -p "$win64Dir" echo "Downloading win64src..." - wget -nv -O "$win64Dir/love64.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-win64.zip + $download "$win64Dir/love64.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-win64.zip echo " Extracting win64src..." unzip -q "$win64Dir/love64.zip" -d "$win64Dir" echo " Done." @@ -48,7 +48,7 @@ fi if [ ! -d "$osx10Dir/love.app" ]; then mkdir -p "$osx10Dir" echo "Downloading osx10src..." - wget -nv -O "$osx10Dir/loveOSX.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-macosx-x64.zip + $download "$osx10Dir/loveOSX.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-macosx-x64.zip echo " Extracting osx10src..." unzip -q "$osx10Dir/loveOSX.zip" -d "$osx10Dir" # delete Mac crao (for some reason can't not unzip it *shrugs*) diff --git a/config.sh b/config.sh index 5fe3b80..62f5ce5 100644 --- a/config.sh +++ b/config.sh @@ -29,5 +29,10 @@ allowOverwrite=false # An "-buildN" will be added to the end of ZIP package names, with N being the Nth time this project was built. autoNumberBuilds=false +# Use curl or wget? +# Comment out the first and uncomment the second to use wget instead of curl. +download="curl -o" +#download="wget --progress=bar:force -O" + # Only change this if you know what you're doing (Read the README.md file). macInfoPlistFixed=false