From 601f49ab8440cf08ba7dc97666bf34ab0b1d7210 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 13 Sep 2020 18:34:34 -0700 Subject: [PATCH] build-system/macOS: change signing to re-enable notarization This continues to be useless for other people as it requires my signing key, but when signed like this I can then successfully submit the dmg for notarization, so I'll update the signing script in order not to lose that magic... Signed-off-by: Dirk Hohndel --- packaging/macosx/sign | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packaging/macosx/sign b/packaging/macosx/sign index cba65ff16..914183fce 100644 --- a/packaging/macosx/sign +++ b/packaging/macosx/sign @@ -11,4 +11,9 @@ cd staging # remove anything codesign doesn't want us to sign find Subsurface.app/Contents/Frameworks/ \( -name Headers -o -name \*.prl -o -name \*_debug \) -print0 | xargs -0 rm -rf -codesign --keychain $HOME/Library/Keychains/login.keychain -s "Developer ID Application: Dirk Hohndel" --deep --force Subsurface.app +# codesign --deep doesn't find the shared libraries that are QML plugins +for dylib in $(find Subsurface.app/Contents/Resources/qml -name \*.dylib) ; do + codesign --options runtime --keychain $HOME/Library/Keychains/login.keychain -s "Developer ID Application: Dirk Hohndel" --deep --force $dylib +done + +codesign --options runtime --keychain $HOME/Library/Keychains/login.keychain -s "Developer ID Application: Dirk Hohndel" --deep --force Subsurface.app