package_mac.sh: fix fallback to hdiutil
This commit is contained in:
parent
62bd84c78c
commit
c9c21d8e18
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue