OS X: Actually Make the signing script fail on failure

Addresses #3114
This commit is contained in:
Daniel Molkentin 2015-04-16 16:33:36 +02:00
parent 96ff0076c7
commit c3dca7a288

View file

@ -1,4 +1,4 @@
#!/bin/sh -x #!/bin/sh -xe
[ "$#" -lt 2 ] && echo "Usage: sign_app.sh <app> <identity>" && exit [ "$#" -lt 2 ] && echo "Usage: sign_app.sh <app> <identity>" && exit
@ -7,6 +7,6 @@ identity="$2"
codesign -s "$identity" --force --verbose=4 --deep "$src_app" codesign -s "$identity" --force --verbose=4 --deep "$src_app"
# Just for our debug purposes: # Verify the signature
spctl -a -t exec -vv $src_app spctl -a -t exec -vv $src_app
codesign -dv $src_app codesign -dv $src_app