From 6a212a68760b0ba6f418e68e80a32776e9e84655 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 27 Apr 2019 00:40:37 +0100 Subject: [PATCH] Use Shadow's fat-jar with launch4j to make JRE-bundled .exe! --- .gitignore | 1 + build.gradle | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index 8a1a208..0dbe424 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Output folder output/ +build/ # Any XeLaTeX/PDFLatex logs texput.log \ No newline at end of file diff --git a/build.gradle b/build.gradle index fd2a2df..0130533 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,7 @@ plugins { id 'org.openjfx.javafxplugin' version '0.0.7' id "com.github.johnrengelman.shadow" version "5.0.0" id 'java' + id "edu.sc.seis.launch4j" version "2.4.5" } group 'org.idiosapps' @@ -41,4 +42,14 @@ javafx { application { mainClassName = 'org.idiosapps.Main' applicationName = 'gradedReaderBuilder' +} + +launch4j { + outfile = 'gradedReaderBuilder.exe' + mainClassName = 'org.idiosapps.Main' + copyConfigurable = project.tasks.shadowJar.outputs.files + jar = "lib/${project.tasks.shadowJar.archiveName}" + bundledJrePath = 'C:\\Program Files\\Java\\jdk-12.0.1' + bundledJre64Bit = true + // https://github.com/TheBoegl/gradle-launch4j for more options! } \ No newline at end of file