- tools/python-embed/: embedded Python 3.12.10 runtime with bleak/pyserial preinstalled (git-ignored, fetched from the huaweicloud mirror); bats resolve Python in order: python-embed -> .venv-ble -> system - NSpyocd.exe + DFP pack copied into tools/ (git-ignored); flash_package.py prefers the in-tools copies - make_release.bat/ps1: one-click zip to out/mothercup_tools_<ts>.zip (staged in TEMP to avoid self-inclusion; zip excluded from git) - all bats converted to CRLF (LF-only breaks cmd block parsing and %~dp0) - verified: zip extracted outside the repo runs ble_ota --uart end-to-end (PASS, 27 kB/s) and flash_package via the bundled NSpyocd - docs: dev log section 49, AGENTS.md tools section + heap 18KB fix
12 lines
620 B
Batchfile
12 lines
620 B
Batchfile
@echo off
|
|
rem ============================================================
|
|
rem make_release.bat - pack tools\ into out\mothercup_tools_<ts>.zip
|
|
rem Self-contained production package: embedded Python runtime
|
|
rem (python-embed\) + NSpyocd flasher included - the target PC
|
|
rem needs nothing installed. Unzip anywhere and run the .bat files.
|
|
rem ============================================================
|
|
setlocal
|
|
set PS=powershell
|
|
%PS% -noprofile -command "exit 0" >nul 2>&1 || set PS=%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe
|
|
%PS% -noprofile -executionpolicy bypass -file "%~dp0make_release.ps1"
|