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 23:37:07 +0300
commit445f94fce155cb37a15ec2b6ce6a1a6cbb08e450 (patch)
tree79f79da0ba9e54e165b09ddc6cabc269b1583ddf /tools
parent5fda7a1575c6af7cd44ba23a3110c556e6d8d3cd (diff)
[macos] unmount dmg before detaching it
fixes detach error on Catalina (cherry picked from commit 984f0a03ce894fc63fafb721c82c336b78e2a2bf)
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"`;