2014-01-13 15:28:06 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -z "$JHBUILD_PREFIX" ]; then
|
|
|
|
echo "You must run this within a jhbuild shell."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f $JHBUILD_PREFIX/bin/python ]; then
|
|
|
|
echo "You must install python with jhbuild."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf HexChat.app
|
2014-05-28 02:35:43 +02:00
|
|
|
rm -f *.app.zip
|
2014-01-13 15:28:06 +01:00
|
|
|
|
|
|
|
$JHBUILD_PREFIX/bin/python $HOME/.local/bin/gtk-mac-bundler hexchat.bundle
|
2014-01-28 22:18:00 +01:00
|
|
|
|
|
|
|
# These take up a lot of space in the bundle
|
|
|
|
echo "Cleaning up python files"
|
2014-05-28 02:35:43 +02:00
|
|
|
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
|
2014-06-01 17:29:20 +02:00
|
|
|
zip -9rXq ./HexChat-$(git describe --tags).app.zip ./HexChat.app
|
|
|
|
|