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.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
declare const __RUNESTONE_VERSION__: string | undefined;
|
||||
|
||||
/** The release version. vite.config.js defines it from RUNESTONE_VERSION or package.json. */
|
||||
export const appVersion: string = typeof __RUNESTONE_VERSION__ === "string" ? __RUNESTONE_VERSION__ : "dev";
|
||||
@@ -12,7 +12,8 @@
|
||||
import Icon from "$lib/ui/Icon.svelte";
|
||||
import IconButton, { type IconName } from "$lib/ui/IconButton.svelte";
|
||||
import { DEFAULT_SETTINGS, MIN_AUTOSAVE_SECONDS, MAX_AUTOSAVE_SECONDS, validAutosaveSeconds, type AppSettings } from "$lib/workspace/settings";
|
||||
import { version, license } from "../../../package.json";
|
||||
import { license } from "../../../package.json";
|
||||
import { appVersion as version } from "../appVersion";
|
||||
|
||||
let { settings, help = false, standalone = false, windowError = "", windowControls, onSave, onClose }: {
|
||||
settings: AppSettings;
|
||||
|
||||
Reference in New Issue
Block a user