A small, simple test for running the jpackage
tool on a minimal JavaFX application on the Mac.
This project was created to investigate a problem in creating signed builds on the Mac environment with JDK 14.
Build the project with JDK 14 as follows:
$ ./gradlew clean build
To create a signed .dmg
bundle, run the following:
$ bin/create-signed-dmg.sh
The resulting .dmg
file should be created in the directory build/bundle/
.
Alternatively, you can create an unsigned bundle as follows:
$ bin/create-unsigned-dmg.sh
This repository was created to help in reporting a problem creating signed packages on the Mac. The problem was reported:
- AdoptOpenJDK issue
- OpenJDK Code Tools Dev mailing list
- OpenJDK Core Libs Dev mailing list (redirected by list administrator)
- Twitter thread
JDK 16 has now been released. In this release jpackage
has been promoted from "incubating" to "production-ready". I've just tested this using v16+36 from AdoptOpenJDK and everything now works and the signed build can be created without any problems.
I was able to create the installable bundle for VocabHunter with jpackage
from JDK 16. I've written up the details in the article Installable Java Apps with jpackage.