annotate deploy/osx/sign.sh @ 396:e51776328158

Date
author Chris Cannam
date Tue, 09 Jun 2020 17:30:47 +0100
parents 78af557445b2
children
rev   line source
Chris@382 1 #!/bin/bash
Chris@382 2
Chris@382 3 set -e
Chris@382 4
Chris@382 5 exe="$1"
Chris@382 6
Chris@382 7 if [ ! -f "$exe" ] || [ -n "$2" ]; then
Chris@382 8 echo "Usage: $0 <executable>"
Chris@382 9 echo " e.g. $0 my-program"
Chris@382 10 exit 2
Chris@382 11 fi
Chris@382 12
Chris@382 13 set -u
Chris@382 14
Chris@382 15 entitlements=deploy/osx/Entitlements.plist
Chris@382 16
Chris@382 17 codesign -s "Developer ID Application: Chris Cannam" -fv --options runtime --entitlements "$entitlements" "$exe"
Chris@382 18