This commit is contained in:
Anuken
2019-08-22 16:13:39 -04:00
parent 32abd991e7
commit 4b8d072854
2 changed files with 8 additions and 4 deletions

View File

@@ -49,8 +49,12 @@ task dist(type: Jar, dependsOn: classes){
task steamtest(dependsOn: dist){ task steamtest(dependsOn: dist){
doLast{ doLast{
copy{ copy{
from "build/libs/Mindustry-linux-release.jar" from "build/libs/Mindustry.jar"
into "/home/anuke/.steam/steam/steamapps/common/Mindustry" if(System.properties["os.name"].contains("Mac")){
into "/home/anuke/.steam/steam/steamapps/common/Mindustry"
}else{
into "/home/anuke/.steam/steam/steamapps/common/Mindustry"
}
rename { String fileName -> rename { String fileName ->
fileName.replace("Mindustry-linux-release", "desktop-release") fileName.replace("Mindustry-linux-release", "desktop-release")
} }
@@ -152,6 +156,6 @@ PackrConfig.Platform.values().each{ platform ->
} }
finalizedBy "zip${platform.toString()}" finalizedBy "zip${platform.toString()}"
} }
} }

View File

@@ -54,7 +54,7 @@ public class DesktopPlatform extends Platform{
Label[] label = {null}; Label[] label = {null};
Core.scene.table(t -> { Core.scene.table(t -> {
t.top().left(); t.top().left();
t.update(() -> t.toFront()); t.update(t::toFront);
t.table("guideDim", f -> { t.table("guideDim", f -> {
label[0] = f.add("").get(); label[0] = f.add("").get();
}); });