Fix builder osx

This commit is contained in:
Gustavo Maximiliano Cortez 2015-10-08 16:42:39 -03:00
parent f620dd7d3c
commit 7d6527ca44
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
1 changed files with 3 additions and 5 deletions

View File

@ -50,10 +50,8 @@ pushd "${STAGING_DIR}"
popd
# figure out how big our DMG needs to be
# assumes our contents are at least 1M!
SIZE=`du -sh "${STAGING_DIR}" | sed 's/\([0-9\.]*\)M\(.*\)/\1/'`
SIZE=`echo "${SIZE} + 1.0" | bc | awk '{print int($1+0.5)}'`
# Fix size to 150MB
SIZE=150
if [ $? -ne 0 ]; then
echo "Error: Cannot compute size of staging dir"
@ -62,7 +60,7 @@ fi
# create the temp DMG file
hdiutil create -srcfolder "${STAGING_DIR}" -volname "${VOL_NAME}" -fs HFS+ \
-fsargs "-c c=64,a=16,e=16" -format UDRW -size ${SIZE}M "${DMG_TMP}"
-fsargs "-c c=64,a=16,e=16" -format UDRW -megabytes ${SIZE} "${DMG_TMP}"
echo "Created DMG: ${DMG_TMP}"