Use correct bit-depth tools when building the kit

If you use the 32-bit version of ConEmu and/or? Python on a 64-bit OS
then psutil will throw access denied errors when trying to wait for
processes.
This commit is contained in:
2Shirt 2021-10-14 23:55:12 -06:00
parent ca45fe800f
commit 5d54b6de4b
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -192,6 +192,13 @@ if ($MyInvocation.InvocationName -ne ".") {
## Done ##
Pop-Location
$ArgumentList = @("-run", "$Bin\Python\x32\python.exe", "$Bin\Scripts\build_kit_windows.py", "-new_console:n")
Start-Process -FilePath "$Bin\ConEmu\ConEmu.exe" -ArgumentList $ArgumentList -verb RunAs
if ([System.Environment]::Is64BitOperatingSystem) {
$ConEmu = "$Bin\ConEmu\ConEmu64.exe"
$Python = "$Bin\Python\x64\python.exe"
} else {
$ConEmu = "$Bin\ConEmu\ConEmu.exe"
$Python = "$Bin\Python\x32\python.exe"
}
$ArgumentList = @("-run", "$Python", "$Bin\Scripts\build_kit_windows.py", "-new_console:n")
Start-Process -FilePath "$ConEmu" -ArgumentList $ArgumentList -verb RunAs
}