2016-08-17 19:36:50 +00:00
|
|
|
#!/bin/bash -e
|
2013-12-20 04:42:59 +00:00
|
|
|
# Hash is 3A8CE62A483083EDEA5581A61E770EC1FA8BECE8 but it doesn't seem to
|
|
|
|
# find the key by hash
|
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
|
|
|
|
rm -rf Subsurface.app/Contents/Frameworks/QtDBus.framework
|
|
|
|
|
2015-11-08 23:14:03 +00:00
|
|
|
echo -- signing Qt frameworks and shared libraries
|
2013-12-15 19:19:01 +00:00
|
|
|
|
2015-11-08 23:14:03 +00:00
|
|
|
for i in \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtConcurrent.framework/Versions/5/QtConcurrent \
|
2015-01-02 23:49:08 +00:00
|
|
|
./Subsurface.app//Contents/Frameworks/QtCore.framework/Versions/5/QtCore \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtGui.framework/Versions/5/QtGui \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtMultimedia.framework/Versions/5/QtMultimedia \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtMultimediaWidgets.framework/Versions/5/QtMultimediaWidgets \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtNetwork.framework/Versions/5/QtNetwork \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtOpenGL.framework/Versions/5/QtOpenGL \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtPositioning.framework/Versions/5/QtPositioning \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtQml.framework/Versions/5/QtQml \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtQuick.framework/Versions/5/QtQuick \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtScript.framework/Versions/5/QtScript \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtSensors.framework/Versions/5/QtSensors \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtSql.framework/Versions/5/QtSql \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtSvg.framework/Versions/5/QtSvg \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtWebKit.framework/Versions/5/QtWebKit \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets \
|
2015-11-08 23:14:03 +00:00
|
|
|
./Subsurface.app//Contents/Frameworks/QtBluetooth.framework/Versions/5/QtBluetooth \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtWebChannel.framework/Versions/5/QtWebChannel \
|
2017-07-29 15:18:37 +00:00
|
|
|
./Subsurface.app//Contents/Frameworks/QtLocation.framework/Versions/5/QtLocation \
|
|
|
|
./Subsurface.app//Contents/Frameworks/QtQuickWidgets.framework/Versions/5/QtQuickWidgets \
|
2015-11-08 23:14:03 +00:00
|
|
|
./Subsurface.app//Contents/Frameworks/*.dylib
|
|
|
|
do
|
2016-06-05 17:55:13 +00:00
|
|
|
codesign --keychain /Users/hohndel/Library/Keychains/login.keychain -s "Developer ID Application: Dirk Hohndel" $i
|
2015-11-08 23:14:03 +00:00
|
|
|
done
|
2013-12-15 19:19:01 +00:00
|
|
|
|
|
|
|
echo -- signing plugins
|
2015-11-08 23:14:03 +00:00
|
|
|
for i in $(find ./Subsurface.app/Contents/PlugIns -name \*.dylib -o -name \*.so)
|
|
|
|
do
|
2016-06-05 17:55:13 +00:00
|
|
|
codesign --keychain /Users/hohndel/Library/Keychains/login.keychain -s "Developer ID Application: Dirk Hohndel" $i
|
2015-11-08 23:14:03 +00:00
|
|
|
done
|
2013-12-15 19:19:01 +00:00
|
|
|
|
|
|
|
echo -- finally sign .app
|
2016-06-05 17:55:13 +00:00
|
|
|
codesign -v --keychain /Users/hohndel/Library/Keychains/login.keychain -s "Developer ID Application: Dirk Hohndel" ./Subsurface.app
|