退役独立扒图程序与试验工具,消除重复源码:删 pdfbt 项目/cadbt C#部分(保留 node+CAD-Viewer 网页引擎,主程序扒图依赖)/ghj/yjktool;打包链同步(make_package 去独立exe/setup.iss 删pdfbt/更新包不再带pdfbt.exe);护栏扩到全部4对双胞胎文件;README 结构更新;编译+组装验证通过

This commit is contained in:
dqb-dev
2026-10-02 02:10:32 +08:00
parent e7f25a8ceb
commit 193035acfb
74 changed files with 34 additions and 26829 deletions
+2 -17
View File
@@ -119,13 +119,9 @@ def main():
ignore=shutil.ignore_patterns("__pycache__", "*.pyc"))
print("复制目录", d)
# ===== cadbt(CAD扒图独立程序,默认安装) =====
# ===== cadbt(CAD 网页引擎运行时;2026-10-01 独立 cadbt.exe 退役,只装 node+CAD-Viewer) =====
cadbt_src = os.path.join(ROOT, "cadbt", "cadbt", "bin", "Debug")
cadbt_dst = os.path.join(REL, "cadbt")
os.makedirs(cadbt_dst, exist_ok=True)
for f in os.listdir(cadbt_src):
if f.endswith((".exe", ".dll", ".config")):
shutil.copy2(os.path.join(cadbt_src, f), os.path.join(cadbt_dst, f))
os.makedirs(os.path.join(cadbt_dst, "node"), exist_ok=True)
shutil.copy2(os.path.join(cadbt_src, "node", "node.exe"), os.path.join(cadbt_dst, "node", "node.exe"))
dist_src = os.path.join(ROOT, "cadbt", "cadbt", "CAD-Viewer", "packages", "cad-viewer-example", "dist")
@@ -148,18 +144,7 @@ def main():
print("补齐 dist/server.cjs")
else:
print("!! 运行目录缺少 server.cjs(CAD 网页服务起不来!)")
os.makedirs(os.path.join(cadbt_dst, "sjk", "bjb"), exist_ok=True)
print("复制目录 cadbt(exe+DLL+node+dist 网页+fonts/templates/server.cjs)")
# ===== pdfbt(PDF扒图独立程序+OCR Python 环境,默认安装) =====
pdfbt_src = os.path.join(ROOT, "pdfbt", "bin", "Debug")
pdfbt_dst = os.path.join(REL, "pdfbt")
os.makedirs(pdfbt_dst, exist_ok=True)
for f in os.listdir(pdfbt_src):
if f.endswith((".exe", ".dll", ".config")):
shutil.copy2(os.path.join(pdfbt_src, f), os.path.join(pdfbt_dst, f))
os.makedirs(os.path.join(pdfbt_dst, "sjk", "bjb"), exist_ok=True)
print("复制目录 pdfbt(exe+pdfium,OCR=百度API无需本地环境)")
print("复制目录 cadbt(node+CAD-Viewer 网页引擎+fonts/templates/server.cjs;独立 exe 已退役)")
# ===== AI 助手引擎目录(2026-09-26 OpenClaw→ZCode 开源版 zai-org/ZCode) =====
# ai助手\ = zcode\(官方 build:zcode 发行包:bin/web/server/agent/node_modules + 捆绑 node)