Fix dmg failure caused by out of space issue

With no clear reason why, copying the program to the dmg is running
out of space. Possibly a bug in latest catalina.

Instead of using a fixed extra space amount. Add 25% of the Product Dir
size to the dmg size.
This commit is contained in:
Todd Naugle 2022-02-04 15:24:24 -06:00
parent d2a5fa2d9f
commit fa29647246

View File

@ -981,8 +981,9 @@ VOLNAME=$APPNAME-$release_version
MNTPATH=`mktemp -d -t ardourimg`
TMPDMG=`mktemp -t ardour`
ICNSTMP=`mktemp -t ardouricon`
EXTRA_SPACE_MB=30
DMGMEGABYTES=$[ `du -sk "$PRODUCT_PKG_DIR" | cut -f 1` * 1024 / 1000000 + $EXTRA_SPACE_MB ]
DMGMEGABYTES=$[ `du -sk "$PRODUCT_PKG_DIR" | cut -f 1` * 1024 / 1000000 ]
EXTRA_SPACE_MB=$[ ($DMGMEGABYTES * 25) / 100 ] #25 percent without using floating point math
DMGMEGABYTES=$[ $DMGMEGABYTES + $EXTRA_SPACE_MB ]
echo "DMG MB = " $DMGMEGABYTES