summary refs log blame commit diff stats
path: root/osx/makebundle.sh
blob: 3a23ee70e9edc62ec7d0b3734d6b1ded7e4af7a0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                          



                                                                                           
#!/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

$JHBUILD_PREFIX/bin/python $HOME/.local/bin/gtk-mac-bundler hexchat.bundle

# These take up a lot of space in the bundle
echo "Cleaning up python files"
find ./HexChat.app/Contents/Resources/lib/python2.7 -name "*.pyo" -or -name "*.pyc" -delete