subsurface/packaging/macosx/sign
Dirk Hohndel 601f49ab84 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 <dirk@hohndel.org>
2020-09-13 18:34:36 -07:00

19 lines
881 B
Bash

#!/bin/bash -e
#
# just a simple helper to make it easier for me to sign our binaries
echo -- signing staging/Subsurface.app
cd staging
# remove the spurious DBus framework that we don't need
#rm -rf Subsurface.app/Contents/Frameworks/QtDBus.framework
# 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 --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