geertjanw opened a new pull request, #146: URL: https://github.com/apache/netbeans-nbpackage/pull/146
Fixes #138. Adds an opt-in 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 the current behaviour. Setting it to `false` keeps the runtime's existing signatures, which avoids the `jlink` "modified runtime" errors described in the issue and [mailing-list thread](https://lists.apache.org/thread/gm8rst0ppmflfg38trdfvglb6dgfjzc3). Notes on the approach: - 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` does not use `--deep`, so it does not re-sign the runtime contents either; filtering the native-binary list is enough to preserve the JDK's original signatures. - Adds help text, a short README note, a log line when the runtime is skipped, and a test. Worth keeping in mind, per the mailing-list thread: skipping runtime re-signing could affect notarization or runtime permissions in some setups, so a package built with `codesign-runtime=false` should be run through notarization + stapling before leaning on it. Happy to adjust the option name or default if there's a preference. -- 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
