From 70510a114f15025b50bb1a7ce47e678d3725eaab Mon Sep 17 00:00:00 2001 From: Knotty Wyvern Date: Tue, 27 Oct 2026 22:59:22 -0700 Subject: [PATCH] Give the front end its version through the build environment vite.config.js reads RUNESTONE_VERSION and falls back to package.json. The installer build sets RUNESTONE_VERSION and writes all four version files only after the installer exists. Before, it wrote package.json before the build and restored it after a failure. The installation guide and CLAUDE.md now say that setup replaces the installed app in place. The installer no longer shows a maintenance page. --- CLAUDE.md | 2 +- docs/builds.md | 14 +++++++------- docs/installation.md | 2 +- scripts/buildInstaller.mjs | 22 +++++++++++----------- src/lib/appVersion.ts | 4 ++++ src/lib/layout/SettingsDialog.svelte | 3 ++- tests/unit/release/buildInstaller.spec.ts | 6 +++--- vite.config.js | 8 ++++++++ 8 files changed, 37 insertions(+), 24 deletions(-) create mode 100644 src/lib/appVersion.ts diff --git a/CLAUDE.md b/CLAUDE.md index f92dd04..8e6e658 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -82,7 +82,7 @@ Rules from the owner: ## Windows installer -- An existing installation defaults to reinstall, also for the same version. Users never need to uninstall first. +- Setup replaces an existing installation in place, also for the same version. Users never need to uninstall first. - Reinstall and update preserve workspace files and user settings. - Keep the protection against version downgrades. diff --git a/docs/builds.md b/docs/builds.md index 0c1ede7..0f5cd3a 100644 --- a/docs/builds.md +++ b/docs/builds.md @@ -50,17 +50,17 @@ Source: `scripts/buildInstaller.mjs`. A dry run prints the plan and stops here. 4. Saves copies of the four version files as `*.before` in `output/installer-build//