Ver código fonte

Merge pull request #58 from windchargerj/bugFix

Fix the toolkit version detection issue
ruki 11 meses atrás
pai
commit
cd62c78c92

+ 0 - 3
build.gradle.kts

@@ -103,9 +103,6 @@ tasks {
     runPluginVerifier {
         ideVersions.set(
             listOf(
-                "2022.3",
-                "2023.1",
-                "2023.2",
                 "2023.3",
                 "2024.1",
                 "2024.2"

+ 4 - 3
src/main/kotlin/io/xmake/utils/execute/Instruction.kt

@@ -28,9 +28,10 @@ val probeXmakeLocCommand = GeneralCommandLine("which")
     )
     .withCharset(Charsets.UTF_8)
 
-val probeXmakeVersionCommand = GeneralCommandLine()
-    .withParameters("--version")
-    .withCharset(Charsets.UTF_8)
+val probeXmakeVersionCommand
+    get() = GeneralCommandLine()
+        .withParameters("--version")
+        .withCharset(Charsets.UTF_8)
 
 val probeXmakeTargetCommand = GeneralCommandLine()
     .withParameters("l")