Skip to content

Commit

Permalink
Added gradlew launch4j that creates a single windows executable for…
Browse files Browse the repository at this point in the history
… jpcsp just depending on JRE in `build/libs/jpcsp-0.7.exe`
  • Loading branch information
soywiz committed Nov 13, 2016
1 parent 0baaf06 commit bf095b8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
16 changes: 16 additions & 0 deletions build.gradle
Expand Up @@ -2,20 +2,24 @@ group 'com.jpcsp'
version '0.7'

buildscript {
ext.launch4j_version = '1.6.2'

repositories {
maven { url "https://plugins.gradle.org/m2/" }
mavenLocal()
mavenCentral()
}
dependencies {
classpath "gradle.plugin.com.stehno:gradle-natives:0.3.0"
classpath "gradle.plugin.edu.sc.seis.gradle:launch4j:$launch4j_version"
}
}

apply plugin: "com.stehno.natives"

apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'edu.sc.seis.launch4j'

mainClassName = "jpcsp.MainGUI"

Expand Down Expand Up @@ -73,4 +77,16 @@ jar {
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}

launch4j {
opt = "-Xmx768m"
print "version: $version"
outfile = "../../build/libs/jpcsp-${project.version}.exe"
icon = "../../resources/icon.ico"
mainClassName = project.mainClassName
//copyConfigurable = project.tasks.fatJar.outputs.files
//jar = "lib/${project.tasks.fatJar.archiveName}"
maxHeapSize = 1024
jar = "../../build/libs/jpcsp-${project.version}.jar"
}
2 changes: 0 additions & 2 deletions gradle.properties
@@ -1,3 +1 @@
lwjglVersion=2.9.3
#lwjglVersion=3.1.0
libgdxVersion=1.9.3
Binary file added resources/icon.ico
Binary file not shown.

0 comments on commit bf095b8

Please sign in to comment.