Skip to content

Instantly share code, notes, and snippets.

@johnwargo
Last active May 20, 2021 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnwargo/9cd1a6c15e98a2ef8a6adeed927f0a7f to your computer and use it in GitHub Desktop.
Save johnwargo/9cd1a6c15e98a2ef8a6adeed927f0a7f to your computer and use it in GitHub Desktop.
Windows Command file for configuring a terminal window for the Moddable and ESP32 SDKs
ECHO OFF
REM set UPLOAD_PORT=COM6
REM Do we have the `VCToolsVersion` environment variable?
IF "%VCToolsVersion%"=="" (
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
pushd %IDF_PATH%
call %IDF_TOOLS_PATH%\idf_cmd_init.bat C:\Python39\ "C:\Program Files\Git\cmd\"
popd
) ELSE (
echo:
echo Skipping, environment already configured
exit /b 1
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment