start/sniff-start: refuse to run in Windows-hosted shells
A Windows user could run the bash launchers from WSL or Git Bash / MSYS2 / MinGW / Cygwin, where the Linux USB assumptions do not hold: WSL cannot reach the Windows SIMtrace2 device, and those shells have no Linux /sys + /dev/bus/usb view for the udev pre-flight. Both launchers now detect a Windows host up front (WSL via /proc/version, the rest via uname -s) and exit 2 with a pointer at the matching .bat launcher, which drives the Windows Python/PyUSB stack. The message goes to stderr; a deliberate WSL/Cygwin flow can still run the Python module directly (noted in the source comment). Tests: tests/test_launchers.py runs each script with a fake mingw uname and asserts exit 2 plus the start.bat/sniff-start.bat pointer, pins the WSL detection, and checks bash -n syntax (skipped when bash is absent). Bumps 2.7.14 (version.py, pyproject, PWA_VERSION), SW cache v96, the README download examples and the release-notes preamble. 561 Python + 80 Node tests.
This commit is contained in:
1 parent
8a7bfe87d1
commit
5a41de092c
11 files changed
+124
-11
No files matched your search
+8
-3
@@ -47,7 +47,7 @@ http://127.0.0.1:8081/.
|
||||
Wheel содержит интерфейс внутри пакета, поэтому сервер отдаёт его сам:
|
||||
|
||||
```sh
|
||||
pip install ./simtrace_analyser-2.7.13-py3-none-any.whl
|
||||
pip install ./simtrace_analyser-2.7.14-py3-none-any.whl
|
||||
simtrace-analyser-server --capture gsmtap
|
||||
```
|
||||
|
||||
@@ -61,7 +61,7 @@ Fedora), сначала создайте виртуальное окружени
|
||||
CLI — выбрать последнюю:
|
||||
|
||||
```sh
|
||||
pip install https://github.com/anttro/simtrace-analyser/releases/download/v2.7.13/simtrace_analyser-2.7.13-py3-none-any.whl
|
||||
pip install https://github.com/anttro/simtrace-analyser/releases/download/v2.7.14/simtrace_analyser-2.7.14-py3-none-any.whl
|
||||
# или:
|
||||
gh release download --pattern '*.whl'
|
||||
pip install ./simtrace_analyser-*.whl
|
||||
@@ -69,7 +69,7 @@ pip install ./simtrace_analyser-*.whl
|
||||
|
||||
### 2. Zip (без установки)
|
||||
|
||||
Скачайте `simtrace-analyser-2.7.13.zip` со страницы релиза и распакуйте в любое
|
||||
Скачайте `simtrace-analyser-2.7.14.zip` со страницы релиза и распакуйте в любое
|
||||
место: это рабочее дерево (пакеты Python, интерфейс, скрипты запуска и документация —
|
||||
без тестов и git). Архив подходит для любой ОС. Затем запустите.
|
||||
|
||||
@@ -169,6 +169,11 @@ start.bat --capture direct
|
||||
start.bat --capture disabled
|
||||
```
|
||||
|
||||
В Windows запускайте `start.bat` / `sniff-start.bat` из `cmd.exe` или
|
||||
PowerShell: `.sh`-скрипты отказываются работать в WSL (гостевая Linux-система
|
||||
не видит USB-устройство SIMtrace2) и в Git Bash / MSYS2 / MinGW / Cygwin (нет
|
||||
Linux-представления `/sys` + `/dev/bus/usb` для проверок udev).
|
||||
|
||||
Параметры передаются как есть (`./start.sh --capture direct --port 8080`).
|
||||
|
||||
Сервер пишет в stderr информацию о жизненном цикле захвата (каждая строка
|
||||
|
||||
Reference in new issue
Block a user