2016-08-17 21:36:50 +02:00
|
|
|
#!/bin/bash -e
|
2018-07-06 22:16:47 -07:00
|
|
|
#
|
|
|
|
# just a simple helper to make it easier for me to sign our binaries
|
2013-12-15 11:19:01 -08:00
|
|
|
|
|
|
|
echo -- signing staging/Subsurface.app
|
|
|
|
cd staging
|
|
|
|
|
2018-07-03 09:27:53 -07:00
|
|
|
# remove the spurious DBus framework that we don't need
|
2019-11-20 10:47:18 -08:00
|
|
|
#rm -rf Subsurface.app/Contents/Frameworks/QtDBus.framework
|
2018-07-03 09:27:53 -07:00
|
|
|
|
2018-07-06 22:16:47 -07:00
|
|
|
# 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
|
2013-12-15 11:19:01 -08:00
|
|
|
|
2020-09-13 18:34:34 -07:00
|
|
|
# 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
|