diff deploy/osx/sign.sh @ 382:78af557445b2

Signing
author Chris Cannam
date Fri, 05 Jun 2020 16:53:23 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deploy/osx/sign.sh	Fri Jun 05 16:53:23 2020 +0100
@@ -0,0 +1,18 @@
+#!/bin/bash 
+
+set -e
+
+exe="$1"
+
+if [ ! -f "$exe" ] || [ -n "$2" ]; then
+    echo "Usage: $0 <executable>"
+    echo "  e.g. $0 my-program"
+    exit 2
+fi
+
+set -u
+
+entitlements=deploy/osx/Entitlements.plist
+
+codesign -s "Developer ID Application: Chris Cannam" -fv --options runtime --entitlements "$entitlements" "$exe"
+