Skip to content

Commit

Permalink
Use Shadow's fat-jar with launch4j to make JRE-bundled .exe!
Browse files Browse the repository at this point in the history
  • Loading branch information
James authored and James committed Apr 26, 2019
1 parent f59dfd6 commit 6a212a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Output folder
output/
build/

# Any XeLaTeX/PDFLatex logs
texput.log
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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!
}

0 comments on commit 6a212a6

Please sign in to comment.