Add in-app update checker and one-click updater

Settings now shows when a newer version is available, with the real
version number read from the remote's package.json (via the git
binary already required for this deployment model, so it works
against any remote, not just GitHub), and an "Uppdatera nu" button
that stops the server, pulls, reinstalls dependencies and restarts
automatically - warning explicitly if a race is currently active.
The existing app-version poller already reloads the page once a
restart is detected, so no new client-side polling was needed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
larssand
2026-09-09 22:05:13 +02:00
parent 2bbbd6e995
commit 4c463485e0
9 changed files with 335 additions and 8 deletions

View File

@@ -8,6 +8,12 @@ The application version is maintained in `package.json` and displayed in the adm
No changes recorded yet.
## 1.8.0 - 2026-09-09
### Added
- Settings now shows whether a newer version of RC RaceCore is available - checked against the actual git remote this installation was cloned from, so it works the same whether that's GitHub or a self-hosted server, and needs no account or API key. When an update is available it shows the new version number (read from the remote's package.json) and an "Uppdatera nu" / "Update now" button that stops the server, pulls the new code, reinstalls dependencies and starts back up automatically, with a confirmation dialog that warns explicitly if a race/session is currently active. The page then reloads on its own once the server is back, reusing the app's existing update-detection so no extra polling logic was needed on the client. No git knowledge is required to update - a single click does the whole thing.
## 1.7.1 - 2026-09-09
### Fixed