changeset 100:26784984642a

Deployment and signing fixes
author Chris Cannam
date Thu, 05 Dec 2013 21:14:04 +0000
parents b405349d323f
children ea081645b43c
files deploy/osx/deploy.sh deploy/osx/sign.sh
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/deploy/osx/deploy.sh	Thu Dec 05 12:33:30 2013 +0000
+++ b/deploy/osx/deploy.sh	Thu Dec 05 21:14:04 2013 +0000
@@ -38,7 +38,7 @@
 echo
 echo "Copying in plugin."
 
-cp ../yintony/yintony.{dylib,cat,n3} "$source/Contents/Resources/"
+cp ../pyin/pyin.{dylib,cat,n3} "$source/Contents/Resources/"
 
 echo
 echo "Fixing up paths."
@@ -56,7 +56,7 @@
 
 ln -s /Applications "$volume"/Applications
 cp README README.OSC COPYING CHANGELOG "$volume/"
-cp -rp "$source" "$target"
+cp -r "$source" "$target"
 
 echo "Done"
 
--- a/deploy/osx/sign.sh	Thu Dec 05 12:33:30 2013 +0000
+++ b/deploy/osx/sign.sh	Thu Dec 05 21:14:04 2013 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash 
 
 # Execute this from the top-level directory of the project (the one
 # that contains the .app bundle).  Supply the name of the .app bundle
@@ -11,8 +11,15 @@
 	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"
+    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/Resources/Tony"
     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] = "43AQ936H96"))' \
+         --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"
 done