~brian.curtin/ubuntuone-windows-installer/patching

« back to all changes in this revision

Viewing changes to scripts/codesign-darwin-verify.sh

  • Committer: Tarmac
  • Author(s): mike.mccracken@canonical.com, mike.mccracken at canonical
  • Date: 2013-02-01 21:59:26 UTC
  • mfrom: (139.10.10 fix-signing)
  • Revision ID: tarmac-20130201215926-2i87d5h9e5mpqfbn
- Allow code signing on macos with different certs, embed CN into fseventsd during build phase.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
rm tmp.req
26
26
 
27
27
echo "\nChecking that the app satisfies the helper's SMAuthorizedClients requirement"
28
 
otool -s __TEXT __info_plist $helper | grep "^[0-9a-f]\{8,16\}" | xxd -r - - > tmp.plist
29
 
perl -nle 'print "identifier $1 and certificate leaf[subject.CN] = \"$2\"" if /identifier (.*) and certificate leaf\[subject.CN\] = "(.*)"/;' tmp.plist > tmp.req 
30
 
$codesign -v -v -R tmp.req Ubuntu\ One.app
31
 
rm tmp.plist tmp.req
 
28
 
 
29
echo "\nActually skipping that because xxd is really slow for some reason"
 
30
# otool -s __TEXT __info_plist $helper | grep "^[0-9a-f]\{8,16\}" | xxd -r - - > tmp.plist
 
31
# perl -nle 'print "identifier $1 and certificate leaf[subject.CN] = \"$2\"" if /identifier (.*) and certificate leaf\[subject.CN\] = "(.*)"/;' tmp.plist > tmp.req 
 
32
# $codesign -v -v -R tmp.req Ubuntu\ One.app
 
33
# rm tmp.plist tmp.req
 
34
 
 
35
echo "\nChecking spctl rule output, look for 'Developer ID' "
 
36
find ./Ubuntu\ One.app -name "*.app" -print0 | xargs -0 spctl -a --verbose=9 
32
37
 
33
38
echo Done.