Files
potaser 649e66f41d feat(review): tectonic PDF compile API (P3a) + rename journals panel
- POST/GET /api/review/compile[/{id}[/pdf|/log]]: isolated workdir,
  --untrusted, 60s timeout with process-group kill, single-slot queue
  (429 QUEUE_FULL), 7-day retention sweep
- tools/install_tectonic.sh: pinned tectonic 0.17.0 (sha256) + README
- Rename menu/panel title to 学术期刊情报
- Compile UI stays a placeholder per product decision (P3 deferred)
2026-10-11 12:19:18 +08:00
..

tools/ —— 编译器工具链(P3)

tectonic(LaTeX → PDF)

  • 单文件 musl 静态二进制,无 root、无系统 TeX Live 依赖;版本与 sha256 钉死在 install_tectonic.sh(本目录二进制不入 git)。
  • 安装:cd review_service && bash tools/install_tectonic.sh 部署树(zh)同一条命令;或直接 scp tools/tectonic + data/tectonic-cache/。
  • 宏包缓存:data/tectonic-cache/(环境变量 REVIEW_TECTONIC_CACHE_DIR 覆盖)。 首次编译会联网拉 bundle(~200MB),建议部署时用 hello.tex 预热: TECTONIC_CACHE_DIR=$PWD/data/tectonic-cache tools/tectonic -X compile hello.tex --untrusted
  • 安全:编译一律 --untrusted(tectonic 官方旗标,禁用已知不安全特性)+ 运行于隔离工作目录 + 60s 超时整组 kill + 禁 shell escape。