From 8fdae3333306b5cf3159c30478a9758031b0a055 Mon Sep 17 00:00:00 2001 From: RK_01 <50594595+RaphiMC@users.noreply.github.com> Date: Wed, 30 Oct 2024 20:48:31 +0100 Subject: [PATCH] Add auto start option to runViaProxy task (#4225) --- common/build.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/build.gradle.kts b/common/build.gradle.kts index b58e48f36..980799ddf 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -32,6 +32,10 @@ tasks.register("runViaProxy") { workingDir = file("run") jvmArgs = listOf("-DskipUpdateCheck") + if (System.getProperty("viaproxy.gui.autoStart") != null) { + jvmArgs("-Dviaproxy.gui.autoStart") + } + doFirst { val jarsDir = file("$workingDir/jars") jarsDir.mkdirs()