forked from qt-creator/qt-creator
Try to workaround issue when creating Mac dmg image
Sometimes one would get an error "hdiutil: resize request is above maximum size allowed." which might have to do with autostretch limits. Passing the -stretch argument with a sufficiently large size should make resizing succeed. Change-Id: I3103ce38e809c2429bed6847ead03f28bfa1f54a Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ cp -a "${sourceFolder}/" "${intermediateFolder}"
|
||||
ln -s /Applications "${intermediateFolder}"
|
||||
cp "$(dirname "${BASH_SOURCE[0]}")/../LICENSE.LGPL" "${intermediateFolder}/LICENSE_LGPL.txt"
|
||||
echo Creating image...
|
||||
hdiutil create -srcfolder "${intermediateFolder}" -volname "${title}" -format UDBZ "${finalDMGName}" -ov -scrub
|
||||
hdiutil create -srcfolder "${intermediateFolder}" -volname "${title}" -format UDBZ "${finalDMGName}" -ov -scrub -stretch 1g
|
||||
|
||||
# clean up
|
||||
rm -rf "${intermediateFolder}"
|
||||
|
||||
Reference in New Issue
Block a user