-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_osx.sh
executable file
·31 lines (21 loc) · 725 Bytes
/
build_osx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# set FILEBASE
eval $(python makevars.py)
BLDIR="installer_osx"
OUTDIR="dist"
rm -r build
rm $BLDIR/template.sparseimage
rm $OUTDIR/$FILEBASE.dmg
python setup.py py2app || exit
hdiutil eject /Volumes/Dtella
hdiutil eject /Volumes/$FILEBASE
hdiutil convert $BLDIR/template.dmg -format UDSP -o $BLDIR/template
hdiutil attach $BLDIR/template.sparseimage
cp -R dist/dtella.app/ /Volumes/Dtella/Dtella.app
cp docs/readme.txt /Volumes/Dtella/
cp docs/changelog.txt /Volumes/Dtella/
cp docs/gpl.txt /Volumes/Dtella/
diskutil rename /Volumes/Dtella/ $FILEBASE
hdiutil eject /Volumes/$FILEBASE
hdiutil convert $BLDIR/template.sparseimage -format UDBZ -o $FILEBASE.dmg
mv $FILEBASE.dmg $OUTDIR
rm $BLDIR/template.sparseimage