fix(packaging): keep distribution minimal

This commit is contained in:
Your Name committed 2026-06-18 11:14:04 +08:00
1 parent c97e4edc74
commit b74baef555
18 files changed
+492 -49

No files matched your search

+32
View File
@@ -14,6 +14,38 @@
- 建议在修改配置前备份原文件
- 配置文件使用 UTF-8 编码
## 自动更新配置
默认建议使用 HTTPS 且安装包与 manifest 同源:
```json
{
"auto_update": {
"enabled": true,
"manifest_url": "https://updates.example.com/douyin/update.json",
"fail_closed": true,
"require_sha256": true,
"require_https": true,
"allow_cross_origin": false
}
}
```
仅内网临时测试 `http://192.168.x.x/...` 时,才显式放宽:
```json
{
"auto_update": {
"enabled": true,
"manifest_url": "http://192.168.10.2:8000/update.json",
"require_https": false,
"allow_cross_origin": true
}
}
```
正式分发不要使用 HTTP;`sha256` 只能防安装包下载损坏,不能替代可信 manifest。