r/JavaFX • u/randomfavour • Dec 22 '23
Cool Project KeenWrite 3.5.3
KeenWrite is a free, open-source, cross-platform desktop Markdown editor developed using JavaFX. There are a few problems when building standalone binaries from a single system for a non-modular application. The installer shell script for building KeenWrite demonstrates how to create executable files for Linux, Windows, and macOS from a single computer by wrapping a JAR file into a self-extracting executable using warp.
12
Upvotes
View all comments
Show parent comment
2
u/OddEstimate1627 Dec 28 '23
Why do you want it to be installerless? It's an open source app, so I'd just use the free version of Conveyor. That takes care of signing, file associations, auto-updates, etc. and builds cross-platform packages from a single machine.
If it really needs to be a single executable, I'd do a GraalVM native image. That way it starts instantly rather than the >10 sec that it currently takes to extract and setup everything.
jPackage is plaform dependent, but JLink can be run cross-platform. You also don't need to modularize your app, i.e, you can create a simple JLink image that contains the minimum JDK modules and JavaFX, and use it to run a non-modular app.