From 69ce3be60fecfcfc85eb5e2edb3ffec0612703b3 Mon Sep 17 00:00:00 2001 From: sowgro Date: Sun, 8 Sep 2024 01:27:19 -0400 Subject: update pom for more platforms --- README.md | 20 +++++++-- icons/icon.icns | Bin 0 -> 22895 bytes pom.xml | 133 ++++++++++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 126 insertions(+), 27 deletions(-) create mode 100644 icons/icon.icns diff --git a/README.md b/README.md index 0d8e64c..4f966c7 100755 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Goals: - [X] Accept mp3 song files - [ ] UI improvements - [ ] Code cleanup -- [ ] Installer / Linux package +- [X] Installer / Linux package Todo - needs design: - Improve errorList and error handling @@ -20,8 +20,22 @@ Todo - bugs: - Fix notesEditor note preview being too small with no notes - Properly center background image -# Installation -Coming soon. +# Building +### Run the app +Run the Driver class from your IDE (known to work with Intellij) + +OR + +Execute the maven goal javafx:run +- windows: `mvnw.cmd javafx:run` +- linux: `./mvnw javafx:run` + +### Create an installer for your OS +Execute the maven package phase +- windows: `mvnw.cmd package` +- linux: `./mvnw package` + +The installer executables should output to `target/dist` # Development Links diff --git a/icons/icon.icns b/icons/icon.icns new file mode 100644 index 0000000..2aaa7d2 Binary files /dev/null and b/icons/icon.icns differ diff --git a/pom.xml b/pom.xml index b10a4c5..8df63fe 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,23 @@ + + + + fr.jcgay.maven.plugins + buildplan-maven-plugin + 1.5 + + + + + + fr.jcgay.maven.plugins + buildplan-maven-plugin + 1.5 + + org.apache.maven.plugins maven-compiler-plugin @@ -74,21 +90,27 @@ org.openjfx javafx-maven-plugin 0.0.8 + + + net.sowgro.npehero/net.sowgro.npehero.Driver + app + NPEHero + app + true + true + true + /home/sowgro/Code/jdk-22_windows-x64_bin/jdk-22.0.2 + -Dprism.forceGPU=true + 2 + + - default-cli - - net.sowgro.npehero/net.sowgro.npehero.Driver - app - NPEHero - app - true - true - true - /home/sowgro/Code/jdk-22_windows-x64_bin/jdk-22.0.2 - -Dprism.forceGPU=true - + + jlink + + package @@ -105,26 +127,89 @@ target/app net.sowgro.npehero/net.sowgro.npehero.Driver target/dist - icons/icon.png + + true + Game + MIT + + true + true + true + + net.sowgro.npehero + music-games - mac - - icons/icons.icns - - - - win - - icons/icon.ico - true - + + jpackage + + package + + + + win + + + windows + + + + + + org.panteleyev + jpackage-maven-plugin + + icons/icon.ico + + + + + + + mac + + + mac + + + + + + org.panteleyev + jpackage-maven-plugin + + icons/icon.icns + + + + + + + linux + + + linux + + + + + + org.panteleyev + jpackage-maven-plugin + + icons/icon.png + + + + + + \ No newline at end of file -- cgit v1.2.3