1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-18 16:33:31 +00:00

1. Fixed Powershell 32/64 bit issue

2. Updated GC referencing
This commit is contained in:
Bryan Roe
2021-03-15 18:01:03 -07:00
parent b9867f7d69
commit 9653072a4f
6 changed files with 68 additions and 44 deletions

View File

@@ -251,7 +251,14 @@ function windows_terminal() {
{
if (require('os').arch() == 'x64')
{
return (this.StartEx(CONSOLE_SCREEN_WIDTH, CONSOLE_SCREEN_HEIGHT, process.env['windir'] + '\\SysWow64\\WindowsPowerShell\\v1.0\\powershell.exe'));
if (require('fs').existsSync(process.env['windir'] + '\\System32\\WindowsPowerShell\\v1.0\\powershell.exe'))
{
return (this.StartEx(CONSOLE_SCREEN_WIDTH, CONSOLE_SCREEN_HEIGHT, process.env['windir'] + '\\System32\\WindowsPowerShell\\v1.0\\powershell.exe'));
}
else
{
return (this.StartEx(CONSOLE_SCREEN_WIDTH, CONSOLE_SCREEN_HEIGHT, process.env['windir'] + '\\SysWow64\\WindowsPowerShell\\v1.0\\powershell.exe'));
}
}
else
{