The installer no longer bundles the engine, and the installer script stops when the bundle names it or when the setup file is over 30 MB. pnpm build:browser-engine packages the engine, writes a deterministic ZIP and its record to releases/browser-engine/<version>/, and pins the ZIP in the host. The installer hooks remove the engine folder that 0.1.48 leaves behind, and uninstall removes the downloaded engine.
14 KiB
Release policy
Builds · Plugin development · Installation
This policy sets version numbers, release file storage, and publication steps for RuneStone and its plugins.
Versions
RuneStone, the browser engine, and each plugin keep separate version numbers. Each project uses the form zz.yy.xx.
| Part | Increase it for | Then reset |
|---|---|---|
xx |
Each new completed regular build. The number has no two-digit limit. | Nothing |
yy |
A deliberate release that is ready for build testing, by direction of the project owner | xx to zero |
zz |
A full release, by direction of the project owner | yy and xx to zero |
A build is a RuneStone installer, a browser engine ZIP, or a plugin ZIP, unless the project owner asks for a different distributable. Development servers, test runs, and intermediate compilation output are not builds.
- Keep routine implementation work in the current
zz.yyseries. - Keep the current version during source edits, fixes, improvements, documentation work, and automated checks.
- Do not change a version for an edit to agent instructions only.
- Set the next version when you produce the build. Keep all version fields of the project consistent.
- If no build completes, restore the previous version fields. Failed attempts and retries do not use a version number.
- Report a new version as available only after its build file exists.
- Publishing an existing build file does not change its version.
- Passing automated checks does not authorize a
yyorzzincrease.
| Project | Version fields |
|---|---|
| RuneStone | package.json, src-tauri/tauri.conf.json, the package version and [package.metadata.runestone] in src-tauri/Cargo.toml, and the runestone entry in src-tauri/Cargo.lock |
| Browser engine | version in browser-runtime/package.json, and the two version fields of browser-runtime/package-lock.json |
| Plugin | plugin.json, the project package.json, and any build metadata |
| Plugin SDK | packages/plugin-sdk/package.json. See SDK releases. |
On Windows, pnpm build:installer --version <version> sets the RuneStone fields when the installer is complete. If the build fails, the fields keep the previous version.
See Build the Windows installer.
pnpm build:browser-engine --release-url <folder URL> --version <version> sets the engine fields and the pin in src-tauri/browser-engine.json when the ZIP is complete. If the build fails, they keep their previous contents.
See Build the browser engine.
Hotfix versions
A hotfix fixes one item or a narrowly scoped problem in an existing release.
It keeps zz.yy.xx and adds or advances a lowercase letter suffix.
- Advance the suffix in this order:
a,b,c, throughz, thenaa,ab, and later suffixes. For example:0.2.28→0.2.28a→0.2.28b. - The next regular build increases
xxand removes the suffix:0.2.28b→0.2.29. - Never use a numeric increment in place of a hotfix suffix.
Use the same literal hotfix version in package.json, plugin.json, build metadata, file names, release notes, and tags.
Example, from the file name rule in scripts/packagePlugin.mjs: the plugin org.example.hello at version 1.0.0a produces org.example.hello-1.0.0a.zip, with the tag v1.0.0a.
If a package format rejects the suffix, add support for it or report the blocker before you build. Do not bypass validation. Do not overwrite an existing release ZIP. Older RuneStone hosts that accept only numeric plugin versions reject suffixed packages.
Some installer toolchains accept only numeric or SemVer versions. For those fields, RuneStone uses a reversible encoding. See Hotfix installer versions. Visible version strings, release metadata, and file names keep the literal version.
Release files
These rules apply to the main app, all existing plugins, and all new plugins.
| Release | Folder |
|---|---|
| RuneStone installer | releases/<version>/ at the RuneStone project root |
| Browser engine ZIP | releases/browser-engine/<version>/ at the RuneStone project root |
| Plugin ZIP | releases/ at the root of that plugin project |
- Keep release notes, checksums, and build metadata with the release they describe, in the local release folder.
- Keep
releases/out of Git. - Use
dist/,build/,output/, and toolchain folders only for compilation, staging, logs, and checks. - After packaging, move the completed installer from the toolchain bundle folder into
releases/. Do not leave a second copy in the bundle folder. - Never copy a plugin ZIP into the host project or into a different plugin project.
- Do not overwrite a release with different contents. Keep distinct versions and files with different contents.
- Remove a duplicate file only after its SHA-256 hash matches the file that you keep.
- Report a filename conflict before you change a file name.
- After each completed build, report the full path of the build file.
pnpm build:installer, pnpm build:browser-engine, and pnpm package:plugin obey these rules for their own output.
The installer and engine scripts stop if the release file exists. The plugin packager reuses an identical ZIP and stops if the existing ZIP has different contents.
Publish an installer
Publish RuneStone installers on the RuneStone releases page.
- Build the installer and complete the installer checks.
- Create a release with the tag
v<version>. - Attach only installer binaries.
- Leave the release description empty.
- Publish the release.
- Put the installation checksums in
docs/checksums/<version>/. - Link the checksums from the installation guide.
- Update the download links in the README.
The empty description lets users reach the downloads directly. Do not attach Markdown files, release notes, checksums, metadata, logs, or screenshots. Put release notes, test results, and installation instructions in the repository documentation. Keep the other build records in the local release folder.
Publish a browser engine
The RuneStone repository is private, so the engine ZIP needs a public download location. Each host build downloads the URL in its pin.
- Build the engine ZIP with the URL of its public release folder. See Build the browser engine.
- In the public download repository, create a release with the tag
browser-engine-v<version>. - Attach only the engine ZIP. Leave the release description empty.
- Upload through the LAN address of the Gitea server. Cloudflare limits a request body to 100 MB, and the ZIP is larger.
- Make sure that the
urlinengine.jsondownloads the ZIP without a sign-in, and that its size matches. - Commit
src-tauri/browser-engine.jsonand the engine version fields. - Build the installer that pins this engine.
The Gitea attachment limit ([attachment] MAX_SIZE) must be larger than the ZIP. The server allowed 100 MB on 2026-10-29.
Keep each published engine ZIP. Installed RuneStone versions download the engine that they pin.
Publish a plugin release
These rules apply on all hosting services. The service stores the files. RuneStone defines the package format, the versions, and the installation checks.
- Build the ZIP with the procedure in Build and package a plugin.
- Install the ZIP in RuneStone. Test its features, the disable action, and removal.
- Create a tag that identifies the source commit of that ZIP.
- Attach the tested
<id>-<version>.zipto a release for that tag. - Publish the release.
- Download the published ZIP and test it in RuneStone.
Use v<version> for an ordinary release tag.
For a temporary prerelease, use a clearly named trial tag and mark the release as a prerelease.
Give users that explicit tag.
After publication, test these with the published ZIP:
- Download, review, installation in the disabled state, enable, disable, and removal
- Cancellation, which must leave no installed package
- An update of an installed plugin ID, which must keep its settings and enabled state
- The repository link with the explicit tag, if RuneStone can install from that service
Rules for the release:
- Publish one plugin ZIP for each release. Attach only that ZIP and leave the release description empty.
- The ZIP contains
plugin.jsonat its root, the compiled entry module, and all required assets and dependencies. See the package contract. - Never use a repository source archive as the plugin package.
- Keep published release files unchanged. Moving an unchanged release to a different service needs no new package or version.
- Put release notes in the plugin repository documentation. Give the required RuneStone version, plugin version, changes, and known limits.
- Give users a link to the ZIP and to the plugin installation guide.
- For a private release, users need permission to download the package.
| Service | How users install | Publisher notes |
|---|---|---|
| Gitea | Download the ZIP, or use the experimental Gitea link installation | See the list below. |
| GitHub | Download the attached ZIP and install it in Settings → Plug-ins | Automatic source archives do not replace the attached ZIP. Installation from a GitHub link needs a download adapter and tests. That work is in the future. |
| GitLab and other services | Download the ZIP and install it in Settings → Plug-ins | RuneStone has no repository-link adapter for these services. |
Gitea link installation needs these conditions:
- The link is the repository root, with an optional trailing
.git. - The Gitea server runs at the host root.
- The release has exactly one attached
.zipfile. Automatic source archives do not count. - The latest-release route skips drafts and prereleases. Use an explicit tag for a prerelease trial.
- For a private repository, the user needs read access to the release metadata and the attachment.
- The server uses HTTPS. HTTP sends the token and the package without encryption.
For download limits, credential handling, and redirects, see Gitea downloads. For GitHub publication steps, see GitHub's release instructions.
SDK releases
The plugin SDK @runestone/plugin-sdk has its own version, in packages/plugin-sdk/package.json. The first release is 0.1.0.
The version rules and the hotfix rules apply.
An SDK release is a commit and a tag in the public SDK repository. It is not a ZIP or an installer.
pnpm sdk:build output in packages/plugin-sdk/dist/ is compilation output, not a release.
The source stays in this repository. The public repository is RuneStone_Plugin_SDK.
It holds only the released files: dist/, package.json, README.md, LICENSE, and NOTICE.
Plugin authors install the SDK from a tag of that repository. See Install the SDK.
Prepare the clone
Do these steps one time.
- On the Gitea server, create the public repository
kwyvern/RuneStone_Plugin_SDK. It can be empty. - Clone it beside the RuneStone repository, as
RuneStone_Plugin_SDK. For a different folder, setRUNESTONE_SDK_REPOto the clone. Without that variable, the script usesRuneStone_Plugin_SDKin theRUNESTONE_PLUGIN_REPOSfolder, or else in the parent folder of RuneStone. - Set the Git user name and email in the clone, if your global Git configuration does not have them.
Release the SDK
- Commit the SDK changes in RuneStone. Run
pnpm checkandpnpm test. - In the clone, get the latest commits and tags:
git pull --tags. - Run
pnpm release:sdk --version <version> --dry-run. Read the plan. - Run
pnpm release:sdk --version <version>. - Run the push commands that the script prints. The script never pushes.
- In RuneStone, commit the new version in
packages/plugin-sdk/package.json. - Install the tag in a plugin project, build the plugin, and test it in RuneStone.
The script builds the SDK, then replaces the released files in the clone. It commits them with the RuneStone commit in the message.
Then it creates the annotated tag v<version>.
The new version goes into packages/plugin-sdk/package.json only after the tag exists.
If a step fails, the script restores that version field. It also resets the clone to its commit before the attempt.
The script stops before it changes a file in these conditions:
| Condition | Action |
|---|---|
The version is not greater than the version in packages/plugin-sdk/package.json or in the clone |
Give a greater version. |
packages/plugin-sdk/ has no LICENSE or README.md file |
Add the file. The SDK uses the Apache License 2.0. |
packages/plugin-sdk/ has changes that are not committed |
Commit them, so that the release has a source commit. |
| The clone is missing or is not the root of a Git repository | Clone the public repository, or set RUNESTONE_SDK_REPO. |
| The clone has changes, or it is not on a branch | Commit or remove the changes. Check out the release branch. |
The tag v<version> exists in the clone |
Give a new version. Never move or replace a published tag. |
The tag is the release. Do not attach files to a repository release for the SDK, and do not put SDK files in releases/.
To move the SDK to another service, or to mirror it, push the same commits and tags. Plugin authors then change only the repository URL.