1 if ($env:MSYSTEM -ne $null) {
2 Write-Output "This .ps1 file is for Windows Powershell only. When using MSYS, run:`n. ./export.sh."
7 $IDF_PATH = $PSScriptRoot
10 Write-Output "Installing ESP-IDF tools"
11 Start-Process -Wait -NoNewWindow -FilePath "python.exe" -Args "$IDF_PATH/tools/idf_tools.py install"
12 if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } # if error
14 Write-Output "Setting up Python environment"
15 Start-Process -Wait -NoNewWindow -FilePath "python.exe" -Args "$IDF_PATH/tools/idf_tools.py install-python-env"
16 if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE} # if error
20 All done! You can now run: