diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2016-03-14 14:24:33 +0100 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2016-03-14 14:24:33 +0100 |
commit | e171456870f9893d582d53114d4f87e634c007e5 (patch) | |
tree | 396b2ec02e139978c7788fb270d73df9dcadc750 | |
parent | e9bf68016ce9e04feb63222ff4bbafd27531f564 (diff) |
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.
-rwxr-xr-x | dev/make-macos-dmg.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dev/make-macos-dmg.sh b/dev/make-macos-dmg.sh index 20b7b5b53..b43ada907 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 |