On Wed, 9 Jul 2025 01:27:32 GMT, Alexander Matveev <almat...@openjdk.org> wrote:

>> src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/MacPackagingPipeline.java
>>  line 311:
>> 
>>> 309:     }
>>> 310: 
>>> 311:     private static void sign(AppImageBuildEnv<MacApplication, 
>>> MacApplicationLayout> env) throws IOException {
>> 
>> I don't understand why individual signing functions are needed for the 
>> runtime and application bundles. They look identical to me.
>
> One is used by `appImageAction` and second by `packageAction`. Maybe I am 
> misusing appImageAction and  packageAction. These two actions requires 
> different argument `AppImageBuildEnv` vs `PackageBuildEnv`.

Try,


builder.task(MacCopyAppImageTaskID.SIGN_RUNTIME_BUNDLE)
                            
.appImageAction(MacPackagingPipeline::signApplicationBundle)
                            .add();

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26173#discussion_r2205975190

Reply via email to