diff --git a/src/main/util.ts b/src/main/util.ts index 61eceac9e115c8a16ef1c9ee870af560495527be..67bf0d73e74d3e32acc011be9582fed121e0b045 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;