From e171456870f9893d582d53114d4f87e634c007e5 Mon Sep 17 00:00:00 2001 From: Maxime Dénès Date: Mon, 14 Mar 2016 14:24:33 +0100 Subject: Trying to circumvent hdiutil error 5341 by padding. When generating the OS X Coq + CoqIDE bundle, hdiutil often produces error 5341. This seems to be a known bug on Apple's side, occurring for some sizes of dmg files. We try to change the current (problematic) size by adding a file full of random bits. --- dev/make-macos-dmg.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dev') diff --git a/dev/make-macos-dmg.sh b/dev/make-macos-dmg.sh index 20b7b5b531..b43ada9076 100755 --- a/dev/make-macos-dmg.sh +++ b/dev/make-macos-dmg.sh @@ -28,4 +28,8 @@ codesign -f -s - $APP mkdir -p $DMGDIR ln -sf /Applications $DMGDIR/Applications cp -r $APP $DMGDIR + +# Temporary countermeasure to hdiutil error 5341 +head -c9703424 /dev/urandom > $DMGDIR/.padding + hdiutil create -imagekey zlib-level=9 -volname CoqIDE_$VERSION -srcfolder $DMGDIR -ov -format UDZO CoqIDE_$VERSION.dmg -- cgit v1.2.3