1 #!/usr/bin/env pwsh
2 $IDF_PATH = $PSScriptRoot
3 
4 
5 Write-Output "Installing ESP-IDF tools"
6 Start-Process -Wait -NoNewWindow -FilePath "python" -Args "$IDF_PATH/tools/idf_tools.py install"
7 if ($LASTEXITCODE -ne 0)  { exit $LASTEXITCODE } # if error
8 
9 Write-Output "Setting up Python environment"
10 Start-Process -Wait  -NoNewWindow -FilePath "python" -Args "$IDF_PATH/tools/idf_tools.py install-python-env"
11 if ($LASTEXITCODE -ne 0)  { exit $LASTEXITCODE} # if error
12 
13 
14 Write-Output "
15 All done! You can now run:
16     export.ps1
17 "
18