Add auto start option to runViaProxy task (#4225)

This commit is contained in:
RK_01 2024-10-30 20:48:31 +01:00 committed by GitHub
parent 4054e83ffe
commit 8fdae33333
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,10 @@ tasks.register<JavaExec>("runViaProxy") {
workingDir = file("run") workingDir = file("run")
jvmArgs = listOf("-DskipUpdateCheck") jvmArgs = listOf("-DskipUpdateCheck")
if (System.getProperty("viaproxy.gui.autoStart") != null) {
jvmArgs("-Dviaproxy.gui.autoStart")
}
doFirst { doFirst {
val jarsDir = file("$workingDir/jars") val jarsDir = file("$workingDir/jars")
jarsDir.mkdirs() jarsDir.mkdirs()