4 Commits
Author SHA1 Message Date
Flechazo 7d3b670896 build(server): separate dev and beta snapshot deployments 2026-11-12 17:39:25 +08:00
Flechazo 6da2d9b89c feat(all): add server gameplay systems, one-step launcher installation, clearer update logs and shared file utilities
Server:
- Add castle and total war battles, IB battles, roguelike runs with castle and roguelike rankings, cafeteria and dating, life content, spine interactions and recordings, popularity rankings, gacha history and selection draws, map exploration, quest previews and completion, passes, rhythm events, quick battles, achievement progress, resource items, prestige illustrations and community notices.
- Report structured request errors from the gateway, validate avatars, and extend settlement evidence and existing domain handlers.
- Let bd2-host.sh deploy from a source directory or a prebuilt image and update the deployment docs and Docker ignore list.

Launcher:
- Prepare a new installation directly from the launcher (download, BepInEx, catalog, patch, plugins) through a shared preparation package also used by bd2client prepare.
- Launching and preparing now wait for a running background update instead of failing with "Another update operation is in progress"; manual update checks wait as well, and launch downloads no longer use the 12-second resource-policy timeout.
- Log what each update check found, every downloaded file, the server requirement, the game resource decision and installed plugins; skip warnings caused by closing the launcher.

Shared:
- Move file hashing and atomic replacement into common/util and use it from the build, release, launcher and server code.
2026-10-19 00:04:02 +08:00
Flechazo 4861529891 fix(server): build host images from a world-readable checkout
bd2-host.sh runs with umask 077, so the build worktree's files were
owner-only and COPY carried those modes into the image, where the
unprivileged server user could not read versions.json and crash-looped.
Check out the build worktree with umask 022.
2026-10-16 23:47:38 +08:00
Flechazo 47e88b52ad refactor(server): replace the Docker update helpers with one host deployment script
Add tools/server/bd2-host.sh with setup, install, deploy, handoff, rollback
and status commands so manual deploys and server-requested updates share one
source check, image build, container switch and readiness check, with the
image chosen only through .env. It reads host settings from
/etc/bd2/host.conf, generates its systemd units instead of patching them,
and copies a default Compose template on first install. Remove the separate
bd2-docker-update script and units, ship bd2-host.sh and compose.yaml in the
server package, and document one-click Docker deployment in the README.
2026-10-16 23:29:10 +08:00