# HG changeset patch # User Chris Cannam # Date 1550150482 0 # Node ID bcc02affeb164aad3bdde24aa84f286766f053bf # Parent 1dddd90cb84e22d8c20048fdd86a7efa9df5060b# Parent 838f869406a54522576255ff892c9496f5f497c7 Merge diff -r 838f869406a5 -r bcc02affeb16 deploy/osx/Info.plist --- a/deploy/osx/Info.plist Thu Feb 14 13:08:40 2019 +0000 +++ b/deploy/osx/Info.plist Thu Feb 14 13:21:22 2019 +0000 @@ -15,6 +15,12 @@ CFBundleShortVersionString TONY_VERSION + + NSMicrophoneUsageDescription + Tony needs to use the microphone for recording. + NSPrincipalClass NSApplication diff -r 838f869406a5 -r bcc02affeb16 deploy/osx/copy-qt.sh --- a/deploy/osx/copy-qt.sh Thu Feb 14 13:08:40 2019 +0000 +++ b/deploy/osx/copy-qt.sh Thu Feb 14 13:21:22 2019 +0000 @@ -11,7 +11,7 @@ frameworks="QtCore QtNetwork QtGui QtXml QtSvg QtWidgets QtPrintSupport QtDBus" -plugins="gif icns ico jpeg tga tiff wbmp webp cocoa minimal offscreen" +plugins="gif icns ico jpeg tga tiff wbmp webp cocoa minimal offscreen macstyle" qtdir=$(grep "Command:" Makefile | head -1 | awk '{ print $3; }' | sed s,/bin/.*,,) @@ -29,6 +29,12 @@ echo echo "Copying frameworks..." for fwk in $frameworks; do + if [ ! -d "$qtdir/lib/$fwk.framework" ]; then + if [ "$fwk" = "QtDBus" ]; then + echo "QtDBus.framework not found, assuming Qt was built without DBus support" + continue + fi + fi cp -v "$qtdir/lib/$fwk.framework/$fwk" "$fdir" || exit 2 done diff -r 838f869406a5 -r bcc02affeb16 deploy/osx/sign.sh --- a/deploy/osx/sign.sh Thu Feb 14 13:08:40 2019 +0000 +++ b/deploy/osx/sign.sh Thu Feb 14 13:21:22 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