From 21679ed067ffb89365c3ac69c6e621cd1ed586fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Gr=C3=A4f?= <aggraef@gmail.com> Date: Thu, 8 Mar 2018 12:50:52 +0100 Subject: [PATCH] Make sure that we don't try to build a tarball installer (-fF) on Mac or Windows, build a native package instead. --- l2ork_addons/tar_em_up.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh index de3e1d141..392baf1ed 100755 --- a/l2ork_addons/tar_em_up.sh +++ b/l2ork_addons/tar_em_up.sh @@ -127,6 +127,20 @@ if [ $any -gt 0 ]; then fi fi +# Make sure that we don't try to build a tarball on Mac or Windows (that's +# part of packages/linux_make and hence only works on Linux), build a regular +# package for the platform instead. +if [ $full -gt 0 ]; then + if [[ $os == "osx" ]]; then + dmg=1 + echo "Warning: tarball installer not supported on Mac, building a dmg installer instead." + elif [[ $os == "win" ]]; then + inno=$full + echo "Warning: tarball installer not supported on Windows, building a Windows installer instead." + fi + full=0 +fi + # Automagically disable Debian packaging when the Debian packaging tools are # not available. if test $deb -gt 0 && test $pkg -gt 0 && ! test -x /usr/bin/dpkg-deb; then -- GitLab