Possible lwjgl natives fix
This commit is contained in:
@@ -8,7 +8,8 @@ def JDK_DIR = "$System.env.JDK_DIR"
|
||||
def ICON_DIR = new File("$rootDir/core/assets/icons/icon.icns")
|
||||
def platforms = ["Linux64", "Windows64", "Windows32", "MacOS"]
|
||||
|
||||
task run(dependsOn: classes, type: JavaExec){
|
||||
tasks.register('run', JavaExec){
|
||||
dependsOn classes
|
||||
mainClass = project.mainClassName
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
standardInput = System.in
|
||||
@@ -26,7 +27,7 @@ task run(dependsOn: classes, type: JavaExec){
|
||||
}
|
||||
|
||||
if(project.hasProperty("jvmArgs")){
|
||||
jvmArgs((List<String>)Eval.me(project.getProperties()["jvmArgs"]))
|
||||
jvmArgs((List<String>) Eval.me(project.getProperties()["jvmArgs"]))
|
||||
}
|
||||
|
||||
if(project.hasProperty("dataDir")){
|
||||
@@ -38,14 +39,16 @@ task run(dependsOn: classes, type: JavaExec){
|
||||
}
|
||||
}
|
||||
|
||||
task dist(type: Jar, dependsOn: configurations.runtimeClasspath){
|
||||
tasks.register('dist', Jar){
|
||||
dependsOn configurations.runtimeClasspath
|
||||
dependsOn ":desktop:processResources"
|
||||
|
||||
from files(sourceSets.main.output.classesDirs)
|
||||
from files(sourceSets.main.output.resourcesDir)
|
||||
from {configurations.runtimeClasspath.collect{ it.isDirectory() ? it : zipTree(it) }}
|
||||
from{ configurations.runtimeClasspath.collect{ it.isDirectory() ? it : zipTree(it) } }
|
||||
from files(project.assetsDir)
|
||||
exclude("config/**")
|
||||
exclude("**hs_err**.log")
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
|
||||
//don't include steam shared libraries unless necessary
|
||||
@@ -70,7 +73,8 @@ if(!project.ext.hasSprites() && System.getenv("JITPACK") != "true"){
|
||||
|
||||
//this is only for local testing
|
||||
//add -Prelease -PversionModifier=steam as build properties
|
||||
task steamtest(dependsOn: dist){
|
||||
tasks.register('steamtest'){
|
||||
dependsOn dist
|
||||
doLast{
|
||||
copy{
|
||||
from "build/libs/Mindustry.jar"
|
||||
|
||||
Reference in New Issue
Block a user