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:29 +0000 (21:50 +0000)
platform/osx/make_dmg.sh

index dcc12e0..43d0a47 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