package_mac.sh: fix fallback to hdiutil

This commit is contained in:
Reid Priedhorsky 2024-02-26 08:06:53 -07:00
parent 62bd84c78c
commit c9c21d8e18
1 changed files with 1 additions and 2 deletions

View File

@ -115,8 +115,7 @@ 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
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"