Fix builder osx
This commit is contained in:
parent
f620dd7d3c
commit
7d6527ca44
1 changed files with 3 additions and 5 deletions
|
|
@ -50,10 +50,8 @@ pushd "${STAGING_DIR}"
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# figure out how big our DMG needs to be
|
# Fix size to 150MB
|
||||||
# assumes our contents are at least 1M!
|
SIZE=150
|
||||||
SIZE=`du -sh "${STAGING_DIR}" | sed 's/\([0-9\.]*\)M\(.*\)/\1/'`
|
|
||||||
SIZE=`echo "${SIZE} + 1.0" | bc | awk '{print int($1+0.5)}'`
|
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error: Cannot compute size of staging dir"
|
echo "Error: Cannot compute size of staging dir"
|
||||||
|
|
@ -62,7 +60,7 @@ fi
|
||||||
|
|
||||||
# create the temp DMG file
|
# create the temp DMG file
|
||||||
hdiutil create -srcfolder "${STAGING_DIR}" -volname "${VOL_NAME}" -fs HFS+ \
|
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}"
|
echo "Created DMG: ${DMG_TMP}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue