How do I codesign a bunch of command line applications, e.g. self-built SVN binaries, that are not located inside a .app structure but will be delivered as .tar.gz bundle? Right now I'm using following shell commands
EXECUTABLES=$(find . \( -perm +111 -type f -or -name '*.dylib' \))
for EXECUTABLE in $EXECUTABLES
do
codesign --force --remove-signature $EXECUTABLE
done
for EXECUTABLE in $EXECUTABLES
do
codesign --force --options=runtime --timestamp --sign $IDENTITY --entitlements "$ENTITLEMENTS_PLIST" -v "$EXECUTABLE"
done
but it looks like this is not sufficient. MacOS 10.15 still rejects them when downloaded from a website.