diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-05-07 12:21:42 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-05-07 12:21:42 -0400 |
commit | e8301185c0391eafa18a09932bfeb1bd76b4bb04 (patch) | |
tree | 205dc036d958228c743777db953a8e5ceb07f65d /tools | |
parent | 81f86b11d1eef3d75e774add89ec9b8e285490e9 (diff) |
a few minor changes required to get a DMG to build (on Tiger, at least)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/osx_packaging/osx_build | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index af582ff3bf..66f3f791e7 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -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}" |