diff --git a/gui/standalone-tests.ts b/gui/standalone-tests.ts index 43557fe9d449..176711b1d515 100644 --- a/gui/standalone-tests.ts +++ b/gui/standalone-tests.ts @@ -22,6 +22,9 @@ async function main() { function getTarBin() { if (process.platform === 'win32') { + if (process.env.windir) { + return path.join(process.env.windir, 'System32', 'tar.exe'); + } return 'tar.exe'; } else { return 'tar';