aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/darwin/packaging/osx/dmgmaker.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/darwin/packaging/osx/dmgmaker.pl b/tools/darwin/packaging/osx/dmgmaker.pl
index c67f33d00f..8d3ab07b53 100755
--- a/tools/darwin/packaging/osx/dmgmaker.pl
+++ b/tools/darwin/packaging/osx/dmgmaker.pl
@@ -57,6 +57,7 @@ sub make_dmg {
`xcrun SetFile -a V "/Volumes/$pkgname/background"`;
`xcrun SetFile -a C "/Volumes/$pkgname/"`;
`cp VolumeDSStoreApp "/Volumes/$pkgname/.DS_Store"`;
+ `diskutil unmountDisk $dev_handle`;
`hdiutil detach $dev_handle`;
`hdiutil convert "$volname.dmg" -format UDZO -imagekey zlib-level=9 -o "$volname.udzo.dmg"`;
`rm -f "$volname.dmg"`;