APPLE: Properly sign helper binaries in Sparkle

This commit is contained in:
Le Philousophe
2024-01-21 15:38:51 +00:00
parent a7425013e7
commit e6c098b7be
@@ -10,6 +10,14 @@ do_make_bdir
do_http_fetch Sparkle "https://github.com/sparkle-project/Sparkle/releases/download/${SPARKLE_VERSION}/Sparkle-${SPARKLE_VERSION}.tar.xz" 'tar --one-top-level -xJf'
# Remove XPCServices
rm "Sparkle.framework/XPCServices"
rm -rf "Sparkle.framework/Versions/B/XPCServices"
# Sign remaining binaries: our codesign shim doesn't handle well deep binaries
ldid -P -Cadhoc -Cruntime -S Sparkle.framework/Versions/B/Autoupdate
ldid -P -Cadhoc -Cruntime -S Sparkle.framework/Versions/B/Updater.app
mkdir -p "${DESTDIR}/${PREFIX}/Library/Frameworks"
mv Sparkle.framework "${DESTDIR}/${PREFIX}/Library/Frameworks"