I currently distribute a Java application, packaged and signed using pkgbuild on macOS.
Recently, Apple warns developers:
\"In an upcoming rel
Here is a simple shell script that will codesign the .so, .dylib and .jnilib within a jar file
usage: codesign_jar_script.sh filename.jar
jar tf $1 | grep '\.so\|\.dylib\|\.jnilib' > filelist.txt
IDENTITY="your_signing_identity"
echo $IDENTITY
while read f
do
jar xf $1 $f
codesign --force -s "$IDENTITY" -v $f
jar uf $1 $f
rm -rf $f
done < filelist.txt