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