fix: 下载脚本改为纯 ASCII,避免 cmd 按 GBK 拆行
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
|
||||
@@ -189,7 +189,7 @@ call download/earphone/download.bat
|
||||
#else
|
||||
call download/earphone/download_app_ota.bat
|
||||
#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
|
||||
#else
|
||||
//to do other case
|
||||
|
||||
@@ -15,8 +15,8 @@ copy ..\..\anc_gains.bin .
|
||||
:: -format all -key RS-5B88.key
|
||||
::-reboot 2500
|
||||
|
||||
@rem 删除临时文件-format all
|
||||
if exist *.mp3 del *.mp3
|
||||
@rem delete temp files
|
||||
if exist *.mp3 del *.mp3
|
||||
if exist *.PIX del *.PIX
|
||||
if exist *.TAB del *.TAB
|
||||
if exist *.res del *.res
|
||||
@@ -26,10 +26,10 @@ if exist *.sty del *.sty
|
||||
copy jl_isd.ufw update.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
|
||||
|
||||
::IF EXIST jl_696x.bin del jl_696x.bin
|
||||
::IF EXIST jl_696x.bin del jl_696x.bin
|
||||
|
||||
if exist script.ver del script.ver
|
||||
if exist tone.cfg del tone.cfg
|
||||
@@ -38,10 +38,10 @@ if exist br28loader.bin del br28loader.bin
|
||||
if exist anc_coeff.bin del anc_coeff.bin
|
||||
if exist anc_gains.bin del anc_gains.bin
|
||||
|
||||
@rem 常用命令说明
|
||||
@rem -format vm //擦除VM 区域
|
||||
@rem -format cfg //擦除BT CFG 区域
|
||||
@rem -format 0x3f0-2 //表示从第 0x3f0 个 sector 开始连续擦除 2 个 sector(第一个参数为16进制或10进制都可,第二个参数必须是10进制)
|
||||
@rem common isd_download flags
|
||||
@rem -format vm
|
||||
@rem -format cfg
|
||||
@rem -format 0x3f0-2
|
||||
|
||||
ping /n 2 127.1>null
|
||||
IF EXIST null del null
|
||||
IF EXIST null del null
|
||||
Reference in New Issue
Block a user