From f0a724888d2801a098098814116a3f2073b7ba56 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 20 Apr 2021 15:29:10 +0200 Subject: [PATCH] Add jar bundler --- pom.xml | 43 +++++++++++++++++++++++++++++ src/main/java/app/MainLauncher.java | 7 +++++ util/run.bat | 3 ++ util/run.sh | 3 ++ 4 files changed, 56 insertions(+) create mode 100644 src/main/java/app/MainLauncher.java create mode 100644 util/run.bat create mode 100644 util/run.sh diff --git a/pom.xml b/pom.xml index 0250a57..4a8fb95 100644 --- a/pom.xml +++ b/pom.xml @@ -102,6 +102,25 @@ maven-plugin + + org.openjfx + javafx-graphics + 13 + win + + + org.openjfx + javafx-graphics + 13 + linux + + + org.openjfx + javafx-graphics + 13 + mac + + @@ -141,6 +160,7 @@ + org.jacoco jacoco-maven-plugin @@ -162,6 +182,29 @@ + + + org.apache.maven.plugins + maven-shade-plugin + 3.0.0 + + + package + + shade + + + + + app.MainLauncher + + + + + + + diff --git a/src/main/java/app/MainLauncher.java b/src/main/java/app/MainLauncher.java new file mode 100644 index 0000000..14ef3ce --- /dev/null +++ b/src/main/java/app/MainLauncher.java @@ -0,0 +1,7 @@ +package app; + +public class MainLauncher { + public static void main(String[] args) { + Main.main(args); + } +} \ No newline at end of file diff --git a/util/run.bat b/util/run.bat new file mode 100644 index 0000000..34d6887 --- /dev/null +++ b/util/run.bat @@ -0,0 +1,3 @@ +@ECHO OFF + +java --enable-preview target/banana-editor-1.0.0.jar \ No newline at end of file diff --git a/util/run.sh b/util/run.sh new file mode 100644 index 0000000..0302144 --- /dev/null +++ b/util/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +java --enable-preview target/banana-editor-1.0.0.jar \ No newline at end of file