From 01f7f56d6db3b37a96fc0440e0d2fc27f1b17076 Mon Sep 17 00:00:00 2001 From: Reid Priedhorsky Date: Mon, 26 Feb 2024 08:06:53 -0700 Subject: [PATCH] package_mac.sh: fix fallback to hdiutil --- scripts/package_mac.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/package_mac.sh b/scripts/package_mac.sh index beb6fa0f5..c17279c86 100755 --- a/scripts/package_mac.sh +++ b/scripts/package_mac.sh @@ -115,9 +115,8 @@ if [ "$MODE" == "app-store" ]; then cp "$SIGNED/UTM.pkg" "$OUTPUT/UTM.pkg" else rm -f "$OUTPUT/UTM.dmg" - command -v appdmg >/dev/null 2>&1 - if [ $? -eq 0 ]; then - RESOURCES="/tmp/resources.$$" + if ( command -v appdmg >/dev/null 2>&1 ); then + RESOURCES="/tmp/resources.$$" cp -r "$BASEDIR/resources" "$RESOURCES" sed -i '' "s/\/tmp\/signed\/UTM.app/\/tmp\/signed.$$\/UTM.app/g" "$RESOURCES/appdmg.json" appdmg "$RESOURCES/appdmg.json" "$OUTPUT/UTM.dmg"