diff --git a/deploy/build-mac.sh b/deploy/build-mac.sh index 6d22f70d..7749499a 100755 --- a/deploy/build-mac.sh +++ b/deploy/build-mac.sh @@ -51,5 +51,9 @@ make -j$COMPILE_JOBS echo "Compressing PhantomJS executable..." echo -[ ! -z strip ] && strip bin/phantomjs -[ ! -z upx ] && upx -9 bin/phantomjs +strip bin/phantomjs +if [ `command -v upx` ]; then + upx -9 bin/phantomjs +else + echo "You don't have UPX. Consider installing it to reduce the executable size." +fi