summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-05-27 20:35:43 -0400
committerTingPing <tingping@tingping.se>2014-05-27 20:35:43 -0400
commitf92e72a92cc3c90b298489756b69986322b803c6 (patch)
treeb8a72e13560af1240f9225c6d590dc7c4120925e
parent0f6434986f576bf680e0231e0208bf0f977465e8 (diff)
osx: makebundle.sh improvements
-rw-r--r--.gitignore4
-rwxr-xr-xosx/makebundle.sh8
2 files changed, 11 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index b1d7ae3a..fa424ecf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -85,3 +85,7 @@ resource.h
 *.user
 #OSX
 osx/HexChat.app
+osx/.HexChat.app
+po/.intltool-merge-cache
+*.zip
+*.dmg
diff --git a/osx/makebundle.sh b/osx/makebundle.sh
index 3a23ee70..df783e9a 100755
--- a/osx/makebundle.sh
+++ b/osx/makebundle.sh
@@ -11,9 +11,15 @@ if [ ! -f $JHBUILD_PREFIX/bin/python ]; then
 fi
 
 rm -rf HexChat.app
+rm -f *.app.zip
 
 $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
+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