Ship the browser engine as its own release file
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.
This commit is contained in:
+24
-4
@@ -6,7 +6,7 @@ This policy sets version numbers, release file storage, and publication steps fo
|
||||
|
||||
## Versions
|
||||
|
||||
RuneStone and each plugin keep separate version numbers. Each project uses the form `zz.yy.xx`.
|
||||
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 |
|
||||
| --- | --- | --- |
|
||||
@@ -14,7 +14,7 @@ RuneStone and each plugin keep separate version numbers. Each project uses the f
|
||||
| `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 or a plugin ZIP, unless the project owner asks for a different distributable.
|
||||
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.
|
||||
@@ -29,12 +29,16 @@ Development servers, test runs, and intermediate compilation output are not buil
|
||||
| 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](#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](builds.md#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](builds.md#build-the-browser-engine).
|
||||
|
||||
## Hotfix versions
|
||||
|
||||
A hotfix fixes one item or a narrowly scoped problem in an existing release.
|
||||
@@ -64,6 +68,7 @@ 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.
|
||||
@@ -77,8 +82,8 @@ These rules apply to the main app, all existing plugins, and all new plugins.
|
||||
- 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` and `pnpm package:plugin` obey these rules for their own output.
|
||||
The installer script stops if the release file exists. The plugin packager reuses an identical ZIP and stops if the existing ZIP has different contents.
|
||||
`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
|
||||
|
||||
@@ -98,6 +103,21 @@ Do not attach Markdown files, release notes, checksums, metadata, logs, or scree
|
||||
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.
|
||||
|
||||
1. Build the engine ZIP with the URL of its public release folder. See [Build the browser engine](builds.md#build-the-browser-engine).
|
||||
2. In the public download repository, create a release with the tag `browser-engine-v<version>`.
|
||||
3. Attach only the engine ZIP. Leave the release description empty.
|
||||
4. Upload through the LAN address of the Gitea server. Cloudflare limits a request body to 100 MB, and the ZIP is larger.
|
||||
5. Make sure that the `url` in `engine.json` downloads the ZIP without a sign-in, and that its size matches.
|
||||
6. Commit `src-tauri/browser-engine.json` and the engine version fields.
|
||||
7. 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.
|
||||
|
||||
Reference in New Issue
Block a user