Files
WechatOnCloud/scripts
Gloridust f115cf21c1 fix(#101): 修正壁纸/字体 PR 的 blockers 后并入
在 d1y 的壁纸/字体功能基础上修掉不可合并的点:
- Dockerfile:移除硬编码的清华 apt 源(会拖垮海外/CI 构建)、还原基础镜像 lscr.io、去掉 imagemagick
  (只为缩略图凭空胖 ~100MB)。缩略图改为直接回原图、前端缩放。
- docker.ts:新增 safeMediaName(在 safeName 基础上拒绝 shell 元字符),壁纸/字体的文件名/字体名都改用它,
  杜绝拼进 sh -c 的注入/坏名(含 getFontFamily 漏校验的一处)。移除 convert 缩略图代码。
- index.ts:bgHandler 404 时误 return reply(truthy) 导致 `if(!inst)` 拦不住 + 类型错误;改为 return null。
- build-local.sh:还原多余的 --progress=plain。

功能:管理页可给实例设桌面壁纸、上传/应用自定义字体(跨容器重建持久化)。实例镜像新增
xwallpaper/xsettingsd(已验证构建通过、工具就位、无 imagemagick)。

Co-Authored-By: d1y <deep@d1y.dev>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-04 23:53:16 +08:00
..