fix: 下载脚本改为纯 ASCII,避免 cmd 按 GBK 拆行

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-19 17:02:21 +08:00
co-authored by Cursor
parent 8364d8c414
commit ecb391b1e6
3 changed files with 26 additions and 10 deletions
+16
View File
@@ -0,0 +1,16 @@
# Windows cmd.exe 按系统 ANSI(中文 Windows 为 GBK)解析 .bat
# 因此:换行必须是 CRLF;.bat 正文保持纯 ASCII,不要写中文
*.bat text eol=crlf
*.cmd text eol=crlf
# 厂商二进制 / 库:禁止当文本做换行转换
*.exe binary
*.dll binary
*.a binary
*.bin binary
*.boot binary
*.key binary
*.ufw binary
*.fw binary
*.wts binary
*.uart binary
+1 -1
View File
@@ -189,7 +189,7 @@ call download/earphone/download.bat
#else #else
call download/earphone/download_app_ota.bat call download/earphone/download_app_ota.bat
#endif #endif
#elif defined(CONFIG_HID_CASE_ENABLE) ||defined(CONFIG_SPP_AND_LE_CASE_ENABLE)||defined(CONFIG_MESH_CASE_ENABLE)||defined(CONFIG_DONGLE_CASE_ENABLE) //数传 #elif defined(CONFIG_HID_CASE_ENABLE) ||defined(CONFIG_SPP_AND_LE_CASE_ENABLE)||defined(CONFIG_MESH_CASE_ENABLE)||defined(CONFIG_DONGLE_CASE_ENABLE) // data-trans
call download/data_trans/download.bat call download/data_trans/download.bat
#else #else
//to do other case //to do other case
@@ -15,7 +15,7 @@ copy ..\..\anc_gains.bin .
:: -format all -key RS-5B88.key :: -format all -key RS-5B88.key
::-reboot 2500 ::-reboot 2500
@rem 删除临时文件-format all @rem delete temp files
if exist *.mp3 del *.mp3 if exist *.mp3 del *.mp3
if exist *.PIX del *.PIX if exist *.PIX del *.PIX
if exist *.TAB del *.TAB if exist *.TAB del *.TAB
@@ -26,7 +26,7 @@ if exist *.sty del *.sty
copy jl_isd.ufw update.ufw copy jl_isd.ufw update.ufw
del jl_isd.ufw del jl_isd.ufw
@REM 生成配置文件升级文件 @rem generate config ufw (disabled)
::ufw_maker.exe -chip AC800X %ADD_KEY% -output config.ufw -res bt_cfg.cfg ::ufw_maker.exe -chip AC800X %ADD_KEY% -output config.ufw -res bt_cfg.cfg
::IF EXIST jl_696x.bin del jl_696x.bin ::IF EXIST jl_696x.bin del jl_696x.bin
@@ -38,10 +38,10 @@ if exist br28loader.bin del br28loader.bin
if exist anc_coeff.bin del anc_coeff.bin if exist anc_coeff.bin del anc_coeff.bin
if exist anc_gains.bin del anc_gains.bin if exist anc_gains.bin del anc_gains.bin
@rem 常用命令说明 @rem common isd_download flags
@rem -format vm //擦除VM 区域 @rem -format vm
@rem -format cfg //擦除BT CFG 区域 @rem -format cfg
@rem -format 0x3f0-2 //表示从第 0x3f0 个 sector 开始连续擦除 2 个 sector(第一个参数为16进制或10进制都可,第二个参数必须是10进制) @rem -format 0x3f0-2
ping /n 2 127.1>null ping /n 2 127.1>null
IF EXIST null del null IF EXIST null del null