Cool. The changes can be found in https://github.com/infeo/jdk/commit/77c50367e3fd7d677bfe2e805be2feafa30b0a37. Basically, the command line builder for wix3/wix4 is adjusted to set the arch flag to x64, x86 or arm64 depending on return values of some jdk.internal.util.Architecture::is[Architecture] methods. If the architecture is not supported by the wix Version, an IOException("Unsupported architecture") is thrown. I defined an package private enum to filter out already unsupported architectures.
@"Alexey Semenyuk" I've read the contribution guide. So, the next step would be finding a Sponsor? Best regards, Armin Am Montag, Juni 30, 2025 17:59 CEST, schrieb Alexey Semenyuk <alexey.semen...@oracle.com>: Hi Armin, Your ARM64 MSI contribution/enhancement for the jpackage will be much appreciated. - Alexey On 6/30/2025 10:09 AM, Armin Schrenk wrote: > > Hello everyone, > > does jpackage support building native ARM64 MSI packages? Building an > jpackage MSI on Windows ARM64, the resulting package contains x64 DLLs. > > I looked further into the JDK code and apparently, the wix Command > builder (WixPipeline.java) only supports x86 or x64 (see > https://github.com/openjdk/jdk/blob/a84946dde4283fd423ef00ce3176bbe1985d7046/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WixPipeline.java#L211). > According to the wix docs, aarch64 is supported since version 4.0: > https://docs.firegiant.com/wix/tools/wixexe/#build > > I already created a patched JDK locally, but maybe this can be a > contribution/enhancement for the JDK in general. > > Best regards, > > Armin Schrenk >
smime.p7s
Description: S/MIME cryptographic signature