Try to give up on making .dmg if we failed to sign the .app.
authorCarl Hetherington <cth@carlh.net>
Fri, 9 Mar 2018 21:50:14 +0000 (21:50 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 9 Mar 2018 21:50:14 +0000 (21:50 +0000)
platform/osx/make_dmg.sh

index dcc12e042c30a3fc66426df4e70aeccd94ff292c..43d0a472ae3dc7dad93e9dbe7f523b23e4aa5785 100644 (file)
@@ -175,6 +175,10 @@ function make_dmg {
     vol_name=DCP-o-matic-$version
 
     codesign --deep --force --verify --verbose --sign "3rd Party Mac Developer Application: Carl Hetherington (R82DXSR997)" "$appdir"
+    if [ "$?" != "0" ]; then
+       echo "Failed to sign .app"
+       exit 1
+    fi
 
     mkdir -p $vol_name
     cp -a "$appdir" $vol_name