1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-21 23:28:51 -05:00

osx: makebundle.sh improvements

This commit is contained in:
TingPing 2014-05-27 20:35:43 -04:00
parent 0f6434986f
commit f92e72a92c
2 changed files with 11 additions and 1 deletions

4
.gitignore vendored
View File

@ -85,3 +85,7 @@ resource.h
*.user *.user
#OSX #OSX
osx/HexChat.app osx/HexChat.app
osx/.HexChat.app
po/.intltool-merge-cache
*.zip
*.dmg

View File

@ -11,9 +11,15 @@ if [ ! -f $JHBUILD_PREFIX/bin/python ]; then
fi fi
rm -rf HexChat.app rm -rf HexChat.app
rm -f *.app.zip
$JHBUILD_PREFIX/bin/python $HOME/.local/bin/gtk-mac-bundler hexchat.bundle $JHBUILD_PREFIX/bin/python $HOME/.local/bin/gtk-mac-bundler hexchat.bundle
# These take up a lot of space in the bundle # These take up a lot of space in the bundle
echo "Cleaning up python files" echo "Cleaning up python files"
find ./HexChat.app/Contents/Resources/lib/python2.7 -name "*.pyo" -or -name "*.pyc" -delete find ./HexChat.app/Contents/Resources/lib/python2.7 -name "*.pyc" -delete
find ./HexChat.app/Contents/Resources/lib/python2.7 -name "*.pyo" -delete
echo "Compressing bundle"
#hdiutil create -format UDBZ -srcdir HexChat.app -quiet HexChat-2.9.6.1-$(git rev-parse --short master).dmg
zip -9rXq ./HexChat-2.9.6.1-$(git rev-parse --short master).app.zip ./HexChat.app