Skip to content

v0.1.1 — port AC v1.6.0→v1.7.1 game-neutral fixes

Choose a tag to compare

@ayozetr ayozetr released this 20 May 01:40
· 77 commits to main since this release

Game-neutral fixes ported from upstream assetto-server-panel v1.6.0→v1.7.1. 13 of the 15 upstream commits in that range were AC saved-session-presets work that doesn't apply to BeamMP and were skipped (see CHANGELOG.md for the explicit list with reasoning).

Fixed

  • dist/ auto-rebuild when node server.js is invoked directly — cherry-picked from assetto-dashboard@c18f40d. The package.json prestart hook that regenerates dist/ from src/ only fires under npm start. The systemd unit in docs/install-ubuntu.md runs node server.js directly, so git pull && systemctl restart beamng-panel was serving a stale UI bundle until someone ran node build.js by hand. Adds an ensureBuildFresh() IIFE at the top of server.js that walks src/, takes the max mtime, compares against dist/app.js's mtime, and runs build.js via spawnSync only when stale or missing. Warm restarts pay one stat per source file and zero subprocess. Build failures log a warning but don't block the boot.

  • 7za binary +x bit self-heal — cherry-picked from assetto-dashboard@c1d9c9f. npm install --ignore-scripts, tarball restores and node_modules copies between hosts all silently drop the executable bit on node_modules/7zip-bin/linux/x64/7za, which made .7z server-plugin uploads fail with HTTP 500 from a downstream spawn EACCES. Adds an idempotent fs.chmodSync(sevenBin.path7za, 0o755) right after the require('7zip-bin') so every panel boot self-heals the bit.

Skipped from upstream

13 commits in the AC v1.6.0..v1.7.1 window are part of the saved-session-presets feature (the session_presets table, the Plantillas/Presets sidebar entry, the inline builder modal, the presetManage permission, the export/import wire format, and four CSS / hook-count / icon-padding fixes against that same modal stack). Session+Preset doesn't map to BeamMP's free-roam multiplayer model, so the whole feature was left behind during the Phase 0/1 AC purge and stays out of scope for this fork.

Polish

  • Service worker CACHE_NAME bumped bp-panel-v3 → bp-panel-v4.