steamtest task destination

This commit is contained in:
Anuken
2023-12-05 13:57:41 -05:00
parent 2f9f371c88
commit 91cc4f922e

View File

@@ -71,7 +71,9 @@ task steamtest(dependsOn: dist){
doLast{ doLast{
copy{ copy{
from "build/libs/Mindustry.jar" from "build/libs/Mindustry.jar"
if(System.properties["os.name"].contains("Mac")){ if(project.hasProperty("destination")){
into project.property("destination")
}else if(System.properties["os.name"].contains("Mac")){
into "/Users/anuke/Library/Application Support/Steam/steamapps/common/Mindustry/Mindustry.app/Contents/Resources" into "/Users/anuke/Library/Application Support/Steam/steamapps/common/Mindustry/Mindustry.app/Contents/Resources"
}else{ }else{
into "/home/anuke/.steam/steam/steamapps/common/Mindustry/jre" into "/home/anuke/.steam/steam/steamapps/common/Mindustry/jre"