From 4e555709346fa29dda54042daee931a11da7dab5 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 22 Nov 2024 15:59:07 +0100 Subject: [PATCH] mac: mitigate "device busy" chances when ejecting DMG --- tools/osx_packaging/osx_build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index 4951526454..511f37e93d 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -1088,6 +1088,7 @@ fi osascript << EOF tell application "Finder" + close every window activate tell disk "${DISKNAME}" open @@ -1126,6 +1127,8 @@ EOF chmod -Rf go-w "${MNTPATH}" sync +sleep 1 +sync set -e echo "compressing Image ..."