1
#!/bin/sh
2
#
3
# This script requires the use of the macdeployqt tool that is found in Qt 4.5
4
#
5
6
APP="Arora"
7
VERSION="0.7.1"
8
#BACKGROUND="src/data/512x512/arora.png"
9
10
DIR="bundle"
11
if [ -d $DIR.app ] ; then
12
    echo "$DIR.app already exists"
13
    exit 1;
14
fi
15
16
# build app with Qt libraries
17
make distclean --quiet
18
qmake -config release
19
make --quiet
20
$QTDIR/bin/macdeployqt $APP.app/
21
22
# Create Bundle
23
mkdir $DIR
24
#cp $BACKGROUND $DIR/.Background.png
25
cp -rf $APP.app $DIR/
26
hdiutil create -ov -srcfolder $DIR -format UDBZ -volname "$APP $VERSION" "$APP.dmg"
27
hdiutil internet-enable -yes "$APP.dmg"
28
rm -rf $DIR
29
30
DATE=`date +"%m-%d-%Y"`
31
mv $APP.dmg "$APP Snapshot ($DATE) Intel-qt4.5.dmg"