mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-07 15:50:09 +03:00
- Click-based CLI entry point (console.py) with --port, --baudrate, --log-dir options and interactive Launch Screen when --port omitted - Deprecation warning for --output CLI flag - 'ls' subcommand to list saved capture files - PyInstaller build scripts (build.sh, build.bat, build_exe.py) - Convenience run scripts (run.sh, run.bat) - README rewrite with installation, usage, architecture docs, and troubleshooting guide - User guides in English and Chinese - Remove old single-file ble_log_console.py - Register new scripts in executable-list.txt
32 lines
849 B
Batchfile
32 lines
849 B
Batchfile
@echo off
|
|
rem SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
|
rem SPDX-License-Identifier: Apache-2.0
|
|
|
|
rem BLE Log Console launcher for Windows CMD.
|
|
rem Works from any directory. All arguments are forwarded to console.py.
|
|
|
|
setlocal
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
set "SCRIPT_DIR=%SCRIPT_DIR:~0,-1%"
|
|
|
|
rem Derive IDF_PATH (three levels up from script directory)
|
|
for %%I in ("%SCRIPT_DIR%\..\..\..") do set "IDF_PATH=%%~fI"
|
|
|
|
echo Activating ESP-IDF environment ...
|
|
call "%IDF_PATH%\export.bat" > nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo ERROR: Failed to activate ESP-IDF environment.
|
|
exit /b 1
|
|
)
|
|
|
|
echo Installing extra dependencies ...
|
|
python -m pip install --quiet textual textual-fspicker
|
|
if %errorlevel% neq 0 (
|
|
echo ERROR: Failed to install dependencies.
|
|
exit /b 1
|
|
)
|
|
|
|
python "%SCRIPT_DIR%\console.py" %*
|
|
exit /b %errorlevel%
|