2019-04-29 02:37:02 +00:00
|
|
|
@echo off
|
|
|
|
if defined MSYSTEM (
|
|
|
|
echo This .bat file is for Windows CMD.EXE shell only. When using MSYS, run:
|
|
|
|
echo ./install.sh.
|
|
|
|
goto end
|
|
|
|
)
|
|
|
|
:: Infer IDF_PATH from script location
|
|
|
|
set IDF_PATH=%~dp0
|
|
|
|
set IDF_PATH=%IDF_PATH:~0,-1%
|
|
|
|
|
|
|
|
echo Installing ESP-IDF tools
|
|
|
|
python.exe %IDF_PATH%\tools\idf_tools.py install
|
2019-07-23 04:20:52 +00:00
|
|
|
if %errorlevel% neq 0 goto :end
|
2019-04-29 02:37:02 +00:00
|
|
|
|
|
|
|
echo Setting up Python environment
|
|
|
|
python.exe %IDF_PATH%\tools\idf_tools.py install-python-env
|
2019-07-23 04:20:52 +00:00
|
|
|
if %errorlevel% neq 0 goto :end
|
2019-04-29 02:37:02 +00:00
|
|
|
|
|
|
|
echo All done! You can now run:
|
|
|
|
echo export.bat
|
2019-07-23 04:20:52 +00:00
|
|
|
|
|
|
|
:end
|