tools: add split_config_secrets for config.json → jsonc + secrets

This commit is contained in:
bot-ci committed 2026-11-02 13:24:27 +08:00
1 parent 8e7ead1669
commit 77d74c501a
4 files changed
+528

No files matched your search

+7
View File
@@ -314,6 +314,13 @@ Copy-Item secrets.example.json secrets.json
默认启动优先读 `config.jsonc`,若不存在则回落 `config.json`(旧单体文件仍可用)。
`python app.py auth` **只回写** `secrets.json`,不会冲掉 JSONC 注释。
若部署目录仍是旧版单体 `config.json`,可用拆分脚本一次迁出:
```powershell
uv run python tools/split_config_secrets.py --dry-run
uv run python tools/split_config_secrets.py # 写出 config.jsonc + secrets.json,源改名为 config.json.bak
```
凭据文件双账号格式:
```json