Closed lmyslinski closed 4 years ago
It's not possible to create a Mac OS archive from Ubuntu. In contrast to jlink, jpackage cannot create installers for other platforms. To create an archive for macOS, you must run jpackage on a macOS. You cannot do it on a Windows or Linux platform.
However, if your project is hosted on GitHub, you can use GitHub Actions to execute the Gradle build on different operating systems (Linux, macOS, Windows). See here an example workflow and the resulting archives.
I had no idea about that - could I maybe suggest adding that to the docs of the plugin? The fact that you can target different platforms with the settings really had me convinced it's possible. I'll check out the github actions, thanks a lot!
Hi, I'm trying to create a Mac OS archive from Ubuntu 18.04 LTS running on WSL:
OpenJDK 14.0.1, Gradle 6.5.1
runtime
works, butjpackage
fails with:> Task :jpackage FAILED WARNING: Using incubator modules: jdk.incubator.jpackage Error: Invalid or unsupported type: [pkg]
I tried to find an example of how to do a cross-system build but can't see any. Is there anything wrong with my config?