13
0

a few minor changes required to get a DMG to build (on Tiger, at least)

This commit is contained in:
Paul Davis 2013-05-07 12:21:42 -04:00
parent 81f86b11d1
commit e8301185c0
2 changed files with 8 additions and 4 deletions

View File

@ -506,10 +506,14 @@ UC_DMG=$APPNAME-${release_version}-${revision}.dmg
VOLNAME=$APPNAME-$release_version
# TODO use mktemp
MNTPATH=`mktemp -d -t ardourimg`
export TMPDIR=`pwd`
MNTPATH=`mktemp -d -t /ardourimg`
TMPDMG=`mktemp -t ardour`
ICNSTMP=`mktemp -t ardouricon`
DMGSIZE=$[ `du -sm "$PRODUCT_PKG_DIR" | cut -f 1` * 1049 / 1000 + 3 ]
EXTRA_SPACE_MB=30
DMGMEGABYTES=$[ `du -sk "$PRODUCT_PKG_DIR" | cut -f 1` * 1024 / 1048576 + $EXTRA_SPACE_MB ]
echo "DMG MB = " $DMGMEGABYTES
rm -f $UC_DMG "$TMPDMG" "${TMPDMG}.dmg" "$ICNSTMP"
rm -rf "$MNTPATH"
@ -517,7 +521,7 @@ mkdir -p "$MNTPATH"
TMPDMG="${TMPDMG}.dmg"
hdiutil create -megabytes $DMGSIZE "$TMPDMG"
hdiutil create -megabytes $DMGMEGABYTES "$TMPDMG"
DiskDevice=$(hdid -nomount "$TMPDMG" | grep Apple_HFS | cut -f 1 -d ' ')
newfs_hfs -v "${VOLNAME}" "${DiskDevice}"
mount -t hfs "${DiskDevice}" "${MNTPATH}"

View File

@ -12,7 +12,7 @@ import sys
#
if sys.platform == 'darwin':
OSX_VERSION = '3.0beta6'
OSX_VERSION = '3.0'
VERSION = '3.0beta6'
else:
LINUX_VERSION = '3.1'