补上命令行编译和固件打包:一次出带 Key / 不带 Key 两套,USB 只烧选中的那套。

- Makefile 源文件列表对齐 CodeBlocks,命令行 make 能编过;编完自动打到 ../release/
- 新增 tools/pack_firmware:按版本打出烧录器 / APP UFW / 网关双备份包,带 Key 和不带 Key 各一套
- build.bat key 烧带 Key,默认或不带参数烧 nokey;另一套只生成不写 Flash
- 删掉未使用的 version.txt;release/ 不进仓库
This commit is contained in:
2026-08-21 15:55:38 +08:00
parent c0b5fcc4c5
commit a4cdf65a4f
11 changed files with 384 additions and 226 deletions
+12
View File
@@ -0,0 +1,12 @@
@echo off
chcp 65001 >nul
cd /d "%~dp0"
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0pack_firmware.ps1"
if errorlevel 1 (
echo.
echo pack failed.
pause
exit /b 1
)
echo.
pause