Files
RuneStone/docs/releases.md
T
Knotty Wyvern 54ccea199e Link the 0.1.49 Windows installer
The Windows download now points to release v0.1.49 in RuneStone_Releases. The docs also say that the browser engine is a separate download.
2026-10-29 11:55:23 -07:00

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.yy series.
  • 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 yy or zz increase.
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, through z, then aa, ab, and later suffixes. For example: 0.2.28 → 0.2.28a → 0.2.28b.
  • The next regular build increases xx and 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 public releases page, beside the browser engine ZIPs.

  1. Build the installer and complete the installer checks.
  2. Create a release with the tag v<version>.
  3. Attach only installer binaries.
  4. Leave the release description empty.
  5. Publish the release.
  6. Put the installation checksums in docs/checksums/<version>/.
  7. Link the checksums from the installation guide.
  8. 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

Each host build downloads the URL in its pin, so the engine ZIP needs a public release location that answers without a sign-in. Until that location exists, the pin stays empty, and an installer cannot download the engine.

  1. Build the engine ZIP with the URL of its public release folder. See Build the browser engine.
  2. In the public release location, create a release with the tag browser-engine-v<version>.
  3. Attach only the engine ZIP. Leave the release description empty. The ZIP is about 164 MB, so the location must accept files of that size.
  4. Make sure that the url in engine.json downloads the ZIP without a sign-in, and that its size matches.
  5. Commit src-tauri/browser-engine.json and the engine version fields.
  6. Build the installer that pins this engine.

Keep each published engine ZIP. Installed RuneStone versions download the engine that they pin. To move a published engine to a different location, upload the same ZIP there and change only the url in the pin. The size and the hash stay the same.

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.

  1. Build the ZIP with the procedure in Build and package a plugin.
  2. Install the ZIP in RuneStone. Test its features, the disable action, and removal.
  3. Create a tag that identifies the source commit of that ZIP.
  4. Attach the tested <id>-<version>.zip to a release for that tag.
  5. Publish the release.
  6. 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.json at 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 .zip file. 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.

  1. On the Gitea server, create the public repository kwyvern/RuneStone_Plugin_SDK. It can be empty.
  2. Clone it beside the RuneStone repository, as RuneStone_Plugin_SDK. For a different folder, set RUNESTONE_SDK_REPO to the clone. Without that variable, the script uses RuneStone_Plugin_SDK in the RUNESTONE_PLUGIN_REPOS folder, or else in the parent folder of RuneStone.
  3. Set the Git user name and email in the clone, if your global Git configuration does not have them.

Release the SDK

  1. Commit the SDK changes in RuneStone. Run pnpm check and pnpm test.
  2. In the clone, get the latest commits and tags: git pull --tags.
  3. Run pnpm release:sdk --version <version> --dry-run. Read the plan.
  4. Run pnpm release:sdk --version <version>.
  5. Run the push commands that the script prints. The script never pushes.
  6. In RuneStone, commit the new version in packages/plugin-sdk/package.json.
  7. 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.