Skip to content

Commit

Permalink
package_mac.sh: fix fallback to hdiutil
Browse files Browse the repository at this point in the history
  • Loading branch information
reidpr committed Feb 26, 2024
1 parent 62bd84c commit 01f7f56
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/package_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 01f7f56

Please sign in to comment.