diff deploy/osx/sign.sh @ 544:1dddd90cb84e

macOS deployment fixes
author Chris Cannam
date Thu, 14 Feb 2019 13:11:27 +0000
parents af696edbd644
children dd344309667f
line wrap: on
line diff
--- a/deploy/osx/sign.sh	Wed Feb 13 10:33:44 2019 +0000
+++ b/deploy/osx/sign.sh	Thu Feb 14 13:11:27 2019 +0000
@@ -12,16 +12,12 @@
 	echo "All .app bundles in pkgdir will be signed"
 	exit 2
 fi
+
 for app in "$dir"/*.app; do
-    find "$app" -name Qt\* -print | while read fr; do
-	codesign -s "Developer ID Application: Chris Cannam" -fv "$fr"
+    find "$app" -name \*.dylib -print | while read fr; do
+	codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr"
     done
-    find "$app" -name \*.dylib -print | while read fr; do
-	codesign -s "Developer ID Application: Chris Cannam" -fv "$fr"
-    done
-    codesign -s "Developer ID Application: Chris Cannam" -fv "$app/Contents/MacOS/Tony.bin"
-    codesign -s "Developer ID Application: Chris Cannam" -fv \
-         --requirements '=designated =>  identifier "uk.ac.qmul.eecs.c4dm.Tony" and ( (anchor apple generic and    certificate leaf[field.1.2.840.113635.100.6.1.9] ) or (anchor apple generic and    certificate 1[field.1.2.840.113635.100.6.2.6]  and    certificate leaf[field.1.2.840.113635.100.6.1.13] and    certificate leaf[subject.OU] = "M2H8666U82"))' \
-         "$app"
+    codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$app/Contents/MacOS/Sonic Visualiser"
+    codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$app"
 done