feat(device): 设备端源码独立成 device/,可脱离具体服务器编译运行

- 模块名去掉私有域名(agent-device),import 路径中性化
- 二进制不内置任何服务器地址与 token,-server 必填
- 新增 -config:token 可放 JSON 文件,避免 ps 泄露
- scripts/build.sh 只做本地构建(有 Go 用 Go,没 Go 用 docker 镜像)
- README 面向使用者,部署细节不进仓库
This commit is contained in:
2026-11-19 17:21:12 +08:00
parent 7d855454a8
commit 4333a53dd3
12 changed files with 1034 additions and 0 deletions
+3
View File
@@ -22,3 +22,6 @@ app/server/version.json
# 部署配置真身(含密钥,模板见 scripts/deploy.conf.example);
deploy.conf
relay/config.json
# 设备端编译产物(交叉编译后本地生成,不入库)
device/bin/