diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh index 744dc9b04988ffebc8fc170ef56ff799326d05f7..2f630e73845a0bd1bf5723c33995450e8d5b23b5 100755 --- a/l2ork_addons/tar_em_up.sh +++ b/l2ork_addons/tar_em_up.sh @@ -106,12 +106,22 @@ if [[ $os == "darwin" ]]; then os=osx fi +# Pick a default build target if none has been set. +if [ $core -eq 0 -a $full -eq 0 -a $deb -eq 0 -a $inno -eq 0 -a $dmg -eq 0 ] +then + if [[ $os == "osx" ]]; then + dmg=1 + elif [[ $os == "win" ]]; then + inno=2 + else + deb=2 + fi +fi + # Automagically disable Debian packaging when the Debian packaging tools are # not available. test $deb -eq 0 || test -x /usr/bin/dpkg-deb || pkg=0 -# XXXTODO: If no build target has been set, we should pick one by default. - # 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 regardless of the options #echo nwjs-sdk-v0.16.0-`uname | tr '[:upper:]' '[:lower:]'`