use upx to compress binary on OS X

1.7
Jon Leighton 2012-06-19 23:49:06 +01:00
parent d0ee703529
commit 7ff61604e3
1 changed files with 6 additions and 1 deletions

View File

@ -52,7 +52,12 @@ cp -r $src/{ChangeLog,examples,LICENSE.BSD,README.md} $dest/
echo "done"
echo
if [[ $OSTYPE != darwin* ]]; then
if [[ $OSTYPE == darwin* ]]; then
echo -n "compressing binary..."
upx -qqq $dest/bin/phantomjs
echo "done"
echo
else
echo -n "copying shared libs..."
libld=
for l in $(ldd $dest/bin/phantomjs | egrep -o "/[^ ]+ "); do