Update the browser, editor, settings, and installer
This commit is contained in:
+20
-10
@@ -152,7 +152,8 @@ Closing the plugin tab or disabling the package disposes the view.
|
||||
The default placement is `"dialog"`, so existing packages keep their current behavior.
|
||||
Older hosts ignore the placement field. Plugins that require editor placement need RuneStone 0.1.5 or later.
|
||||
All packages use one API and the same installation, enable, disable, and removal lifecycle.
|
||||
Versions use three numeric parts. Schema and API versions must match the supported version exactly.
|
||||
Versions use three numeric parts with an optional lowercase hotfix suffix, such as `0.2.28a`.
|
||||
Schema and API versions must match the supported version exactly.
|
||||
The `runestone.*` prefix follows the same rules as other package IDs. It does not prove the publisher's identity.
|
||||
|
||||
Package names use ASCII letters, digits, dots, underscores, and hyphens, with forward slashes between directories.
|
||||
@@ -172,7 +173,7 @@ Use `zz.yy.xx` and keep routine implementation work in the current `zz.yy` serie
|
||||
|
||||
| Part | When to increase it |
|
||||
| --- | --- |
|
||||
| `xx` | Each new completed plugin ZIP build. The number has no two-digit limit. |
|
||||
| `xx` | Each new completed regular plugin ZIP build. Hotfixes increase the letter suffix. |
|
||||
| `yy` | A deliberate release ready for build testing, with user direction. Reset `xx` to zero. |
|
||||
| `zz` | A full release, with user direction. Reset `yy` and `xx` to zero. |
|
||||
|
||||
@@ -181,11 +182,16 @@ Set the next version when producing the ZIP. Intermediate compilation output doe
|
||||
If no build completes, restore the previous version fields. Failed attempts and retries do not consume version numbers.
|
||||
Report a new version as available only after its ZIP exists. Publishing an existing artifact does not increase its version.
|
||||
Passing automated checks alone does not authorize a `yy` or `zz` increase.
|
||||
Use lowercase letters for hotfix release labels, such as `0.2.11a` and `0.2.11b`.
|
||||
The current plugin packager and installer require numeric versions in `plugin.json`.
|
||||
Until that contract supports suffixes, use letters only in release labels or tags.
|
||||
Increase `xx` for each changed hotfix ZIP and record its numeric package version in the release notes.
|
||||
Keep the package and manifest versions equal. Do not bypass the host validator or overwrite an existing release ZIP.
|
||||
A hotfix fixes one item or a narrowly scoped problem in an existing release.
|
||||
Use letters in the actual package version: `0.2.28` → `0.2.28a` → `0.2.28b`.
|
||||
Keep the numeric base for hotfix builds.
|
||||
Advance hotfix suffixes in this order: `a`, `b`, `c`, through `z`, then `aa`, `ab`, and later suffixes.
|
||||
The next regular build increases `xx` and removes the suffix: `0.2.28b` → `0.2.29`.
|
||||
Keep the package version, manifest version, build metadata, ZIP name, release notes, and tag consistent.
|
||||
For example, package version `0.2.28a` produces `runestone.pm-0.2.28a.zip` and uses tag `v0.2.28a`.
|
||||
The shared packager and updated native installer accept these suffixes. Older hosts with numeric-only validation reject suffixed packages.
|
||||
Do not substitute a numeric increment for a hotfix. Add suffix support or report a format blocker before building.
|
||||
Do not bypass validation or overwrite an existing release ZIP.
|
||||
|
||||
## Build and release a plugin
|
||||
|
||||
@@ -269,7 +275,8 @@ Keep the package contract above. No repository manifest or special branch layout
|
||||
Use `v<version>` for ordinary release tags. Use a clearly named trial tag for temporary prereleases.
|
||||
Keep the manifest version and package version equal. Keep published release files unchanged.
|
||||
Increase the version when building a new ZIP, before publication.
|
||||
Prerelease builds follow the same build counter. Each new ZIP gets the next numeric version and an explicit trial tag.
|
||||
Prerelease builds follow the same version policy. Each new regular ZIP gets the next numeric build version.
|
||||
Each hotfix ZIP gets the next letter suffix. Use an explicit trial tag for prereleases.
|
||||
|
||||
The ZIP must contain `plugin.json` at its root, the compiled entry module, and all required assets and dependencies.
|
||||
Do not attach a source ZIP as the plugin package. Gitea's automatic source archives do not count as release attachments.
|
||||
@@ -366,6 +373,9 @@ export function activate(api) {
|
||||
| `assets.read(path)` | Read package bytes as a `Uint8Array` |
|
||||
|
||||
Command and view IDs must be unique within their respective plugin collections.
|
||||
Plugin commands can supply an optional `icon` from the view icon set.
|
||||
Use the same icon for the command and its view. Older hosts can ignore this field.
|
||||
Sidebar views belong in the left navigation. Views with a direct navigation button do not repeat in the plugin launch menu.
|
||||
Plugin configuration appears in Settings under the plugin name.
|
||||
Register a view with `settings: true` to add its configuration page.
|
||||
The host mounts that view inside Settings and removes it from the launch menu.
|
||||
@@ -457,8 +467,8 @@ Users can open browser tabs, manage profiles in Settings, and use web bookmarks
|
||||
The existing browser data directory stays the same. Profiles, bookmarks, cookies, and settings remain available.
|
||||
An old Browser package can be removed from Settings. The host does not load it alongside the built-in browser.
|
||||
|
||||
The interface source lives in `src/lib/browser/`. The runtime source remains in `../RuneStone_Browser/`.
|
||||
Stage the runtime with that checkout's `npm run stage:host` before creating an installer.
|
||||
The interface source lives in `src/lib/browser/`. The runtime source lives in `browser-runtime/`.
|
||||
Run `pnpm browser:stage` after packaging that runtime and before creating an installer.
|
||||
The main Tauri configuration includes `src-tauri/browser-engine/` as an installer resource.
|
||||
Browser startup obtains a session token for its window. Native requests check that token, and cleanup revokes it.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user