RFR: 8351073: [macos] jpackage produces invalid Java runtime DMG bundles [v4]
Alexey Semenyuk
asemenyuk at openjdk.org
Mon Jul 14 23:18:46 UTC 2025
On Wed, 9 Jul 2025 01:27:32 GMT, Alexander Matveev <almatvee at 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
More information about the core-libs-dev
mailing list