aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrey Filipenkov <decapitator@ukr.net>2022-05-25 15:38:49 +0300
committerAndrey Filipenkov <decapitator@ukr.net>2022-05-25 15:38:49 +0300
commit984f0a03ce894fc63fafb721c82c336b78e2a2bf (patch)
tree51a985a3950b5bfec55f26a2ac417d5383a5e978 /tools
parentc44330683fcb382374a64525b3bb9754da7a77e8 (diff)
[macos] unmount dmg before detaching it
fixes detach error on Catalina
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"`;