feat(v1.2.6): 合并审核整改、确认完全原创并完善可选 API 披露

版本升至 1.2.6(1.2.5 审核被拒未发布,整改内容并入本版);README 新增原创声明(4.2.1/4.2.2 不适用);Hero 描述来源默认 none,选一言自动填入官方接口、清空回退本地句子库;文档列出两个 IP 定位候选接口与访客 IP 披露文案;含上一轮 4.4.2 内容渲染安全与 5.2 字体许可证修复。
This commit is contained in:
nxxy335 committed 2026-11-11 16:09:31 +08:00
1 parent dda86294b0
commit c92429d139
18 files changed
+485 -63

No files matched your search

+11
View File
@@ -24,6 +24,17 @@ if (!fs.existsSync(path.join(assetsDir, "logo.png"))) {
}
console.log("[postbuild] logo.png 已去重,仅保留 templates/assets/logo.png");
// 1b. 第三方字体许可证全文必须随构建产物分发(审核指南 5.2:许可证传递 / 版权声明保留)
const oflFile = path.join(assetsDir, "fonts", "LXGWWenKai", "OFL.txt");
if (!fs.existsSync(oflFile)) {
console.error(
"[postbuild] 未找到 templates/assets/fonts/LXGWWenKai/OFL.txt" +
"(public/assets/fonts/LXGWWenKai/OFL.txt 应随构建复制)"
);
process.exit(1);
}
console.log("[postbuild] LXGW WenKai 的 OFL 1.1 许可证全文已随包");
// 2. 历史资源合并(已存在的同名文件以当前构建为准,不覆盖)
if (fs.existsSync(compatDir)) {
let copied = 0;