Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows CDS archive non-reproducible due to jpackageapplauncher #1181

Open
andrew-m-leonard opened this issue Jan 10, 2025 · 1 comment
Open
Assignees

Comments

@andrew-m-leonard
Copy link
Contributor

andrew-m-leonard commented Jan 10, 2025

Up til now we have been excluding the Windows CDS archive from reproducible comparison, because it was not identical.
We have discovered the reason is due to the signing of the jdk.jpackage/classes/jdk/jpackage/internal/resources/jpackageapplauncher.
This executable template is used by the "jpackage" command to build user bespoke application runtime executables. The jpackage app bundle builder takes this template resource and updates it by "re-branding" it user specific "icons" and resource text. The process of re-branding removes any existing Signature from the resource, so any signing is pointless : https://github.com/openjdk/jdk/blob/c5c4efdaa1d04b1441fd96712b71cdb43e5d86df/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WindowsAppImageBuilder.java#L140

This can be verified by running a jpackage test, and examing the user package for any signatures...??

@andrew-m-leonard
Copy link
Contributor Author

Tested creating a jpackage application, and as expected, can confirm the MSI bundle, the MSI contents and the installed app package showed no signs of any "signing" remnants when created from a Temurin that had "signed" jpackageapplauncher files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant