feat(device): 0.1.1——shell_ver 编码兜底、all 目标补 linux/mips 软浮点

- shellInfo 拿到的版本号先过 toUTF8:utf8.Valid 为真(英文版 Windows 的
  纯 ASCII、本来就是 UTF-8 的系统)原样返回,只有不是合法 UTF-8 时才按
  GBK 解,解不出来保留原样。中文 Windows 的 `cmd /c ver` 是 GBK,之前
  hello 上报的 shell_ver 显示成「Microsoft Windows [�汾 10.0.19045.7807]」。
- build.sh 的 all 目标补 linux/mips,并固定 GOMIPS=softfloat(AR9331 这类
  OpenWrt 设备没有 FPU,硬浮点二进制一跑就是非法指令);docker 分支同步。
- version 0.1.0 → 0.1.1,两台设备版本号一致但代码不同的坑到此为止。
This commit is contained in:
2026-11-20 14:50:29 +08:00
parent c9dd5e48bd
commit 3df103cd45
6 changed files with 34 additions and 11 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ jobs:
| 平台 | 文件 |
| --- | --- |
| Linux amd64 / arm64 | `agent-device-linux-*` |
| Linux amd64 / arm64 / mips | `agent-device-linux-*` |
| macOS amd64 / arm64 | `agent-device-darwin-*` |
| Windows amd64 | `agent-device-windows-amd64.exe` |
不含 mips / mipsle(OpenWrt 等自行交叉编译:`GOARCH=mips GOMIPS=softfloat`)。
`linux-mips` 是软浮点(`GOMIPS=softfloat`),给 AR9331 这类没 FPU 的 OpenWrt 设备用。