One more fix #254

This commit is contained in:
Namhyeon Go 2025-05-17 11:50:27 +09:00
parent c2f578a1c8
commit ca9caef94e

View File

@ -64,7 +64,7 @@ namespace WelsonJS.Launcher
{ {
Name = "jar (Java SDK)", Name = "jar (Java SDK)",
FileName = "jar.exe", FileName = "jar.exe",
ExtractCommand = (src, dest) => $"jar xf \"{src}\"", ExtractCommand = (src, dest) => $"xf \"{src}\"",
UseCmd = true UseCmd = true
}, },
new Extractor new Extractor
@ -190,7 +190,7 @@ namespace WelsonJS.Launcher
if (useCmd && !String.IsNullOrEmpty(workingDirectory)) if (useCmd && !String.IsNullOrEmpty(workingDirectory))
{ {
fileName = "cmd.exe"; fileName = "cmd.exe";
adjustedArguments = $"/c cd /d \"{workingDirectory}\" && {arguments}"; adjustedArguments = $"/c cd /d \"{workingDirectory}\" && \"{executableFilePath}\" {arguments}";
} }
var psi = new ProcessStartInfo var psi = new ProcessStartInfo