docs: 补节点库的入口(README §3.12 / 命令速查);修 publish-release 的 GBK 崩溃

- README 加 §3.12「会议模式的节点(独立库 :nodekit)」+ 形状对照表,
  命令速查里补上几个 python 验证脚本
- publish-release.py:加 sys.stdout.reconfigure(utf-8)。
  不加的话 Windows 控制台是 GBK,脚本里的 ✓ 会 UnicodeEncodeError,
  而且**崩在创建 release 之后、上传附件之前** —— release 建好了却没有 APK。
  v2.0.44 发版时踩到,已重跑补上附件。
This commit is contained in:
l
2026-10-16 09:32:07 +08:00
parent 39813985b5
commit 2c259d4270
2 changed files with 37 additions and 0 deletions

View File

@@ -21,6 +21,15 @@ import sys
import urllib.error
import urllib.request as u
# ★★ 不加重定向的话,Windows 控制台默认 GBK,脚本里那些 `✓` 会直接
# UnicodeEncodeError 崩掉 —— 而且**崩在创建 release 之后、传附件之前**:
# 结果是"release 建好了、说明也写上了,就是没有 APK"。
# 这个坑真踩过(v2.0.44 发版时),所以所有会打 ✓ 的脚本都要这一行。
try:
sys.stdout.reconfigure(encoding='utf-8', errors='replace')
except Exception:
pass
WS = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
API = 'http://192.168.100.103:8080/api/v1/repos/l/doubao-clone'
# ★ 凭据不从仓库读(仓库是公开的)。要发版就先把这两个环境变量设上: