On Fri, 25 Oct 2024 01:49:01 GMT, Alexander Matveev <almat...@openjdk.org> 
wrote:

> - It is not clear on which macOS versions codesign fails if application 
> bundle contains additional content.
> - As a result test was modified to generate only application image, since PKG 
> or DMG cannot be generated if signing fails. Exit code of jpackage is 
> ignored, but generated application image will be checked for additional 
> content.
> - This change is for macOS only.
> - Previous implementation of test (forcing expected exist code to 1) was not 
> doing anything useful, since we never checked if additional content was 
> copied or not.

Another possible solution to codesign failure is to add additional CLI command 
to jpackage `--mac-unsigned` and if such option is specified we will not run 
ad-hoc codesign at all. It will produce completely unsigned image which is not 
very useful, but will avoid any such problems during testing.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/21698#issuecomment-2438922113

Reply via email to