()
| 182 | } |
| 183 | |
| 184 | function getWindowsTarCommand(): string { |
| 185 | const systemRoot = process.env['SystemRoot'] ?? process.env['WINDIR']; |
| 186 | if (systemRoot !== undefined) { |
| 187 | const systemTar = join(systemRoot, 'System32', 'tar.exe'); |
| 188 | if (existsSync(systemTar)) return systemTar; |
| 189 | } |
| 190 | return 'tar.exe'; |
| 191 | } |
| 192 | |
| 193 | function findBinaryRecursively(rootDir: string, binaryName: string): string | null { |
| 194 | const stack = [rootDir]; |