Update the browser, editor, settings, and installer

This commit is contained in:
Knotty Wyvern
2026-10-12 14:46:21 -07:00
parent 909894b9c8
commit f6eaa52949
163 changed files with 146260 additions and 534 deletions
+30 -5
View File
@@ -1,6 +1,6 @@
# Build and package RuneStone
[Development](development.md) · [Release history](releases.md) · [Installation](installation.md)
[Development](development.md) · [Installation](installation.md)
This guide is for maintainers. Users install a supplied package through the installation guide.
@@ -41,17 +41,42 @@ It does not register document types or start RuneStone when Windows starts.
See [Tauri's Windows installer documentation](https://v2.tauri.app/distribute/windows-installer/) for the packaging options.
## Hotfix installer versions
Hotfix installer versions use the same letter sequence as plugin versions: `a`, `b`, `c`, through `z`, then `aa`, `ab`.
Use `pnpm build:installer --version 0.1.23a` to produce that release.
The build command checks matching versions, preserves existing installers, and restores previous version fields if the build fails.
`package.json`, Cargo release metadata, installer metadata, the app version display, and release filenames retain the literal release version.
Cargo and Tauri require SemVer. The adapter encodes `0.1.23a` as `0.1.23+1` in their version fields.
Windows requires four numeric parts. The adapter encodes the same version as `0.1.23.1` in the numeric version resource.
The executable's FileVersion and ProductVersion strings retain `0.1.23a`.
These internal encodings represent the same release. They do not create a separate build or increase the numeric release version.
The shared NSIS comparison orders the numeric release first, then the hotfix suffix.
For example: `0.1.23 < 0.1.23a < 0.1.23b < 0.1.23z < 0.1.23aa < 0.1.24`.
The installer blocks downgrades before uninstall or update actions, including silent and passive installs.
Unknown version formats also block replacement. Reinstall and upgrade retain the existing installation by default.
Windows stores the SemVer encoding in its compatibility version field for older installers.
It stores the literal release version in `RuneStoneReleaseVersion` for the updated installer.
The app and installer version strings and release filenames use `0.1.23a`. Windows Apps can show the equivalent internal value `0.1.23+1`.
This keeps older numeric installers from treating a hotfix as an unknown or older release.
The Windows numeric resource limits each part and the hotfix index to 65535.
The adapter rejects versions outside those limits before it changes version fields.
The NSIS template derives from Tauri CLI 2.11.4. Check its changes when updating Tauri.
## Prepare a release
Each project uses its own `zz.yy.xx` version. Routine source edits and checks retain the current version.
Increase `xx` once when producing a new completed installer or plugin ZIP. Failed attempts do not consume a version.
Increase `xx` once for each completed regular build. For a hotfix, increase the letter suffix. Failed attempts do not consume a version.
Keep version fields consistent, and restore them if no build completes.
Increase `yy` or `zz` only for a user-directed release, then reset the lower fields as defined in [the version policy](../AGENTS.md#versioning).
Publishing an existing artifact does not change its version.
1. Set the same version in `package.json`, `src-tauri/Cargo.toml`, and `src-tauri/tauri.conf.json`.
2. Update `src-tauri/Cargo.lock` with Cargo if the package version changed.
3. Run the checks and build command above.
1. Select the release version under the shared version policy.
2. Run the checks above.
3. Run `pnpm build:installer --version <version>`. The adapter sets matching release and toolchain versions.
4. Test the installer on a clean Windows account with the checks below.
5. Attach the setup file and release notes to the repository release or your chosen download page.