more temp fixes for making files in build script system independent

This commit is contained in:
Adam 2022-06-24 00:04:50 +02:00
parent 55e08ade47
commit 4c94a41029

View file

@ -68,7 +68,7 @@ val clientLaunch by tasks.registering(Exec::class) {
commandLine = parseSpaceSeparatedArgs( commandLine = parseSpaceSeparatedArgs(
// """explorer "steam://rungameid/$factorioGameId// --mp-connect localhost/" """ // not working // """explorer "steam://rungameid/$factorioGameId// --mp-connect localhost/" """ // not working
// """explorer "steam://run/$factorioGameId//--mp-connect localhost/" """ // works! But has annoying pop-up // """explorer "steam://run/$factorioGameId//--mp-connect localhost/" """ // works! But has annoying pop-up
""" ${steamExe.asFile.get().canonicalPath} -applaunch $factorioGameId --mp-connect localhost --mod-directory ${clientModsDirectory.asFile.get().canonicalPath} """ """ ${steamExe.asFile.orNull?.canonicalPath} -applaunch $factorioGameId --mp-connect localhost --mod-directory ${clientModsDirectory.asFile.orNull?.canonicalPath} """
) )
doFirst { logger.lifecycle("Launching factorio.exe") } doFirst { logger.lifecycle("Launching factorio.exe") }
} }