geertjanw commented on issue #138: URL: https://github.com/apache/netbeans-nbpackage/issues/138#issuecomment-5929318063
I've taken a first stab at adding an option to skip re-signing the bundled JDK runtime on macOS. New option: package.macos.codesign-runtime (boolean, default true). Leaving it at the default keeps current behaviour. Setting it to false keeps the runtime's existing signatures, which should avoid the jlink "modified runtime" errors. A couple of things on the approach: - It filters by the runtime path (Contents/Home) rather than adjusting the signing glob, since FileUtils.find also matches on filename, so the default glob's *.dylib would still catch the runtime libs by name. - The final whole-bundle codesign doesn't use --deep, so it doesn't re-sign the runtime contents either, filtering the native-binary list is enough to preserve the JDK's original signatures. - Also added help text, a short README note, a log line when the runtime is skipped, and a test. Something ekse, per the mailing-list thread: skipping runtime re-signing could affect notarization or runtime permissions, so it'd be good for us to run a package built with codesign-runtime=false through notarization + stapling before relying on it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
