This project is a simple Sierpinski's Triangle app that I wrote to learn how to use JavaFX, jLink, and jPackage.
- Go to releases.
- Download either the
.zipfile for your system. - Extract the file.
- Navigate to the
binfolder. - Run
sierpinski(orsierpinski.batif you're on windows).
- Installers
- Go to releases.
- Download
Sierpinski-installer.msi(recommended) orSierpinski-installer.exe. - Run the installer.
- Portable
- Go to releases.
- Download the
sierpinski-app-image-win-x64.zip. - Extract the file.
- Run
Sierpinski.exe.
Have fun!
- Scroll to zoom in and out.
- Press
rto re-render the screen if something goes wrong.
- Prerequisites
- JDK 21
- A bit of command line knowledge
- Clone this repository.
- Open a terminal to the cloned project.
- Build the project.
- Just build the project:
- Run
./gradlew build - Check
build/distributionsfor the builds.
- Run
- Build portable images:
- Run
./gradlew jlinkZip - Check
buildfor the.zipimages.
- Run
- Build installers & executables:
- Check Oracle's website for info on your system's prerequisites.
- Change the
jpackageTargetPlatformvariable in theextblcok of thebuild.gradlefile to match your operating system and architecture. - Run
./gradlew jpackage - Check
build/jpackagefor the installer(s) andbuild/jpackage/Sierpinskifor the executable.- Note: By default, the
jpackagetask runs thejlinktask as well. To speed up the build, you can comment out thetargetPlatform()functions in thejlinkblock of thebuild.gradlefile that you don't want to build for.
- Note: By default, the
- Just build the project:
This project uses the MIT license.
Thanks to OpenJFX as this project was build with JavaFX. Thanks to the creators of the Badass JLink Plugin as well.