Flechazo 4e7eb7dc06 fix: draw the bar's neck in the bar container; the changelog button folds the list back
Page glass near the bar is passed to the bar container as fusion partners, so the bridge stays attached to the still bar while the page scrolls. The earlier-versions button turns into a collapse button and keeps its place on screen when the list folds.
2026-10-25 10:03:48 +08:00

bd2-site

BD2 离线版的客户端与服务端下载站,部署在 https://bd2.flechazo.xin。纯静态页面,无构建步骤。

  • site/:站点根目录。背景 assets/bg.webp 裁自 SpecialIllust291(2048×1100);app.js 用 WebGL 着色器绘制背景光影和所有液态玻璃(按元素实时矩形计算折射、色散、高光,跟随鼠标形变),不支持 WebGL 时退回 CSS backdrop-filter 玻璃。data/latest.json 记录当前下载文件的版本、大小与 SHA-256;更新日志在浏览器中读取 /releases/CHANGELOG.md。
  • /releases/ 由 Caddy 只读反代到 BD2 服务端的签名发布目录(DATA_DIR/releases),与启动器、服务端自动更新使用同一套文件。
  • scripts/sync.py:BD2 仓库 bd2w release publish、签名并上传发布材料后,运行它重新生成 site/data/latest.json,再提交、推送并部署。
  • scripts/serve.py:本地预览,/releases/ 从发布主机获取。
python -I scripts/sync.py --release F:/code/go/bd2/.build/release-site
python -I scripts/serve.py --upstream https://bd2.flechazo.xin

部署:服务器 /opt/bd2-site 是本仓库的检出,Caddy 站点块位于 server-infra/bd2-site/Caddyfile。

cd /opt/bd2-site && git fetch origin && git checkout --detach <commit>
S
Description
No description provided
Readme
637 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 65.5%
CSS 23.5%
HTML 6.5%
Python 4.5%