From 9ee5fc3b88ed0bf980929960e4b77609680534cb Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Sat, 16 Nov 2024 20:23:52 +0200 Subject: [PATCH] Mounting --- packaging/macos/buildpackage.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/macos/buildpackage.sh b/packaging/macos/buildpackage.sh index 7d2847c7bb9a..44b99ca41a6f 100755 --- a/packaging/macos/buildpackage.sh +++ b/packaging/macos/buildpackage.sh @@ -149,8 +149,11 @@ build_app "${TEMPLATE_DIR}" "${BUILTDIR}/OpenRA - Dune 2000.app" "d2k" "Dune 200 rm -rf "${TEMPLATE_DIR}" echo "Packaging disk image" -if hdiutil info | grep -q "/Volumes/OpenRA"; then + +if mount | grep -q "/Volumes/OpenRA"; then echo "Some process is stealing our resources! /Volumes/OpenRA is already mounted!" +else + echo "/Volumes/OpenRA is not mounted." fi hdiutil create "build.dmg" -format UDRW -volname "OpenRA" -fs HFS+ -srcfolder build