mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
adcf6cb75f
- 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
23 lines
631 B
Bash
Executable File
23 lines
631 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# BLE Log Console launcher.
|
|
# Works from any directory: ./run.sh, or /full/path/to/run.sh
|
|
# All arguments are forwarded to console.py.
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
IDF_PATH="$(cd "$SCRIPT_DIR/../../.." && pwd)"
|
|
export IDF_PATH
|
|
|
|
echo "Activating ESP-IDF environment ..."
|
|
# shellcheck source=/dev/null
|
|
. "$IDF_PATH/export.sh" > /dev/null 2>&1
|
|
|
|
echo "Installing extra dependencies ..."
|
|
python -m pip install --quiet textual textual-fspicker
|
|
|
|
exec python "$SCRIPT_DIR/console.py" "$@"
|