Possible lwjgl natives fix

This commit is contained in:
Anuken
2026-02-04 21:03:25 -05:00
parent 4a3e9593fd
commit 6b029cf8dd
4 changed files with 36 additions and 26 deletions

View File

@@ -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"