Skip to content

Latest commit

 

History

History
61 lines (31 loc) · 1.78 KB

README.adoc

File metadata and controls

61 lines (31 loc) · 1.78 KB

Supernaut.FX Sample Gradle Build

Build Status

Overview

This project contains a sample, "Hello World"-style Supernaut.FX application using built with Gradle, the Badass JLink Plugin, jlink and jpackage to produce natively-packaged applications for Linux, macOS, and Windows.

Setup

  1. Install JDK 17 or later.

Build Instructions

  1. git clone [email protected]:SupernautApp/supernaut-fx-sample-gradle.git

  2. cd supernaut-fx-sample-gradle

  3. ./gradlew build

To run via Gradle:

  • ./gradlew run

To build a natively-packaged executable:

  • ./gradlew jpackageImage

The executable can be found in the build/jpackage directory.

To build a native package for distribution:

  • ./gradlew jpackage

The installer package can be found in the build/jpackage directory.

Building with GraalVM and Gluon

Setup

  1. Install Graal VM java17 version 22.0.0.2 or later (Latest GraalVM JDK 17)

  2. Set GRAALVM_HOME environment variable

If you are building a GraalVM native image with GluonFX you may need to install additional software (depending upon your platform) see the Gluon Documentation for info.

Building a Native Image

To build:

  • ./gradlew nativeBuild

to run:

  • ./gradlew nativeBuild nativeRun

or to build a package:

  • ./gradlew nativeBuild nativePackage

The native packages can then be found in: ./build/gluonfx/<platform>/