diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh index e2ac9d7f21604a2f8765e46388d13570a290105d..3f4d9f44fb504848529e0da1b7feffd7bab7a80a 100755 --- a/l2ork_addons/tar_em_up.sh +++ b/l2ork_addons/tar_em_up.sh @@ -49,6 +49,9 @@ os=`uname | tr '[:upper:]' '[:lower:]'` if [[ $os == *"mingw32"* ]]; then os=win fi +if [[ $os == "darwin" ]]; then + os=osx +fi # Fetch the nw.js binary if we haven't already. We want to fetch it even # for building with no libs, so we do it before all options @@ -65,13 +68,17 @@ if [ ! -d "../pd/nw/nw" ]; then arch="armv7l" fi - if [[ $os == "win" ]]; then + if [[ $os == "win" || $os == "osx" ]]; then ext="zip" + else + ext="tar.gz" + fi + + if [[ $os == "win" ]]; then # We need the lts version to be able to run on XP. For # simplicity we use that same version for 64 bit Windows, too nwjs_version="v0.14.7" else - ext="tar.gz" # temporary kluge for rpi-- only 0.15.1 is available atm if [ `uname -m` == "armv7l" ]; then nwjs_version="v0.15.1"