From 0fdda27ba37a713d9069b6f2e4352a4f3fc796f6 Mon Sep 17 00:00:00 2001 From: Tony Salomone <dadmobile@gmail.com> Date: Fri, 18 Oct 2024 14:06:43 -0400 Subject: [PATCH] Fix install step spawns to work on windows. --- src/main/util.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/util.ts b/src/main/util.ts index 61eceac9..67bf0d73 100644 --- a/src/main/util.ts +++ b/src/main/util.ts @@ -408,7 +408,7 @@ export async function executeInstallStep( // Set installer script filename and options based on platform // For windows this is a bit hacky...we need to pass a unix-style path to WSL const exec_cmd = isPlatformWindows() - ? `wsl ~/.transformerlab/src/${installScriptFilename}` + ? `wsl` : `${fullInstallScriptPath}`; console.log(`Running: ${exec_cmd}`); @@ -421,8 +421,9 @@ export async function executeInstallStep( stdout = ''; stderr = ''; - const exec_args = [`${argument}`]; - + const exec_args = isPlatformWindows() + ? [`~/.transformerlab/src/${installScriptFilename}`, `${argument}`] + : [`${argument}`]; const options = {}; let process = null; -- GitLab