Skip to content

Commit 7c36f3a

Browse files
committed
create_dmg.sh: some sleep's around hdiutil calls that sometimes fail
1 parent c706727 commit 7c36f3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

installer/mac/create_dmg.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ ln -s /Applications /Volumes/${VOL}/
3434

3535
hdiutil detach "/Volumes/${VOL}"
3636
hdiutil resize "${TMP_DMG}" -size min
37+
sleep 5
3738
hdiutil attach "${TMP_DMG}"
39+
sleep 2
3840

3941
# echo '
4042
# tell application "Finder"
@@ -62,7 +64,9 @@ hdiutil attach "${TMP_DMG}"
6264
# end tell
6365
# ' | osascript
6466

67+
sleep 2
6568
hdiutil detach "/Volumes/${VOL}"
69+
sleep 5
6670
diskutil unmount "/Volumes/${VOL}" || true
6771

6872
#convert to compressed image, delete temp image

0 commit comments

Comments
 (0)