This project shows how to create a custom runtime image of a modular application that uses jnativehook.
Windows
gradlew build jlink jpackageLinux
./gradlew build jlink jpackageWindows
build\image\bin\jnativehook-modular-demo.batLinux
./build/image/bin/jnativehook-modular-demoWindows
build\jpackage\jnativehook-modular-demo-1.0.0.msiLinux
sudo apt-get update && sudo apt install ./build/jpackage/jnativehook-modular-demo_1.0.0-1_amd64.debYou can also download the packages created by the GitHub Actions.