Skip to content

Commit 8212a75

Browse files
committed
Codesigning fix
1 parent b2ba336 commit 8212a75

1 file changed

Lines changed: 9 additions & 18 deletions

File tree

.github/scripts/package-macOS.sh

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ build_flavor()
4747
rm -f $TMPDIR/*/Contents/Resources/plugdata-resources.bin
4848
rm -f $TMPDIR/*/plugdata-resources.bin
4949

50+
if [ -n "$AC_USERNAME" ]; then
51+
for item in $TMPDIR/*; do
52+
/usr/bin/codesign --force --deep -s "Developer ID Application: Timothy Schoen (7SV7JPRR2L)" \
53+
--options runtime \
54+
--entitlements ./Resources/Installer/Entitlements.plist \
55+
"$item"
56+
done
57+
fi
58+
5059
pkgbuild --analyze --root $TMPDIR ${PKG_DIR}/${PRODUCT_NAME}_${flavor}.plist
5160
plutil -replace BundleIsRelocatable -bool NO ${PKG_DIR}/${PRODUCT_NAME}_${flavor}.plist
5261
plutil -replace BundleIsVersionChecked -bool NO ${PKG_DIR}/${PRODUCT_NAME}_${flavor}.plist
@@ -107,24 +116,6 @@ EOF
107116
rm -r "$SCRIPTS_DIR"
108117
}
109118

110-
if [ -n "$AC_USERNAME" ]; then
111-
112-
# Sign plugdata-resources.bin
113-
/usr/bin/codesign --force -s "Developer ID Application: Timothy Schoen (7SV7JPRR2L)" $BINARY_DATA_FILE
114-
115-
# Sign app with hardened runtime and audio entitlement
116-
/usr/bin/codesign --force -s "Developer ID Application: Timothy Schoen (7SV7JPRR2L)" --options runtime --entitlements ./Resources/Installer/Entitlements.plist ./Plugins/Standalone/*.app
117-
118-
# Sign plugins
119-
/usr/bin/codesign --force -s "Developer ID Application: Timothy Schoen (7SV7JPRR2L)" --options runtime --entitlements ./Resources/Installer/Entitlements.plist ./Plugins/VST3/*.vst3
120-
/usr/bin/codesign --force -s "Developer ID Application: Timothy Schoen (7SV7JPRR2L)" --options runtime --entitlements ./Resources/Installer/Entitlements.plist ./Plugins/AU/*.component
121-
/usr/bin/codesign --force -s "Developer ID Application: Timothy Schoen (7SV7JPRR2L)" --options runtime --entitlements ./Resources/Installer/Entitlements.plist ./Plugins/LV2/plugdata.lv2/libplugdata.so
122-
/usr/bin/codesign --force -s "Developer ID Application: Timothy Schoen (7SV7JPRR2L)" --options runtime --entitlements ./Resources/Installer/Entitlements.plist ./Plugins/LV2/plugdata-fx.lv2/libplugdata-fx.so
123-
/usr/bin/codesign --force -s "Developer ID Application: Timothy Schoen (7SV7JPRR2L)" --options runtime --entitlements ./Resources/Installer/Entitlements.plist ./Plugins/CLAP/plugdata.clap/Contents/MacOS/plugdata
124-
/usr/bin/codesign --force -s "Developer ID Application: Timothy Schoen (7SV7JPRR2L)" --options runtime --entitlements ./Resources/Installer/Entitlements.plist ./Plugins/CLAP/plugdata-fx.clap/Contents/MacOS/plugdata-fx
125-
126-
fi
127-
128119
BUILD_TYPE=$1
129120
if [[ "$BUILD_TYPE" == "Universal" ]]; then
130121
MIN_OS_VERSION="10.15"

0 commit comments

Comments
 (0)