JavaPackager icon indicating copy to clipboard operation
JavaPackager copied to clipboard

Mac Universal and Script stubs both run as Intel on ARM

Open idontusenumbers opened this issue 1 year ago • 1 comments

I'm submitting a…

  • [x] bug report
  • [ ] feature request
  • [ ] other

Short description of the issue/suggestion: MacOS SCRIPT and UNIVERSAL stubs both run as x64 (Intel as indicated in Activity Monitor) on an ARM64 machine. Explicitly setting macStartup = "ARM64" produces a .app that runs as Apple

Steps to reproduce the issue/enhancement:

  1. On an Apple Silicon mac, package application into .app using the default macStartup of SCRIPT or explicitly set to UNIVERSAL
  2. Run produced .app

What is the expected behavior? Activity monitor shows application is running as Apple

What is the current behavior? Activity monitor shows application is running as Intel

Please tell us about your environment:

  • JavaPackager version: 1.7.6
  • OS version: macOS 15.1.1 (24B2091)
  • JDK version: OpenJDK 64-Bit Server VM Temurin-17.0.13+11
  • Build tool:
    • [ ] Maven
    • [x] Gradle

idontusenumbers avatar Dec 05 '24 02:12 idontusenumbers

Hi @idontusenumbers! It seems that Mac OS 15+ has broken JP, since there are a lot of similar issues related to this one😢 @maths22 has contributed to JP with a nativeJavaApplicationStub. Please, read this comment in issue #448 and test it if possible. Thanks!!

P.S.: I don't have a Mac anymore, so is very difficult for me to test it by myself.

fvarrui avatar Dec 10 '24 18:12 fvarrui