Rewrite the documentation and the agent instructions
Move the agent instructions from AGENTS.md to CLAUDE.md. AGENTS.md now points to CLAUDE.md. The UI rules move to docs/ui-design.md. The version and release policy moves to the new docs/releases.md. Rewrite the README, the user guides, and the developer references. Check each claim against the code. Remove old version history and repeated warnings. Link to Gitea at git.knottywyvern.com instead of the LAN address. Move the October 13 menu audit to the archive.
This commit is contained in:
+162
-195
@@ -1,185 +1,159 @@
|
||||
# Development guide
|
||||
|
||||
[RuneStone](../README.md) · [Interface design](ui-design.md) · [Build and package](builds.md) · [Plugin development](plugin-development.md)
|
||||
[RuneStone](../README.md) · [Builds](builds.md) · [Releases](releases.md) · [Plugin development](plugin-development.md) · [Interface design](ui-design.md)
|
||||
|
||||
For task-based app help, use the [user guide](user-guide.md).
|
||||
Dated implementation records and proposals live in the [archive](archive/README.md).
|
||||
|
||||
## Test changes without a full rebuild
|
||||
|
||||
From the repository folder, run:
|
||||
|
||||
```powershell
|
||||
pnpm tauri dev
|
||||
```
|
||||
|
||||
For a fresh checkout, complete [Run from source](#run-from-source) first.
|
||||
|
||||
This command starts Vite and opens RuneStone in a native desktop window.
|
||||
Keep the terminal open while you edit the source.
|
||||
Svelte, TypeScript, and CSS changes update through hot module replacement (HMR), or a page reload when required.
|
||||
Frontend changes do not need a Rust rebuild or an installer.
|
||||
|
||||
The first launch compiles the Rust app and its dependencies.
|
||||
Later launches reuse Cargo's cached output.
|
||||
Rust changes still need compilation, but Cargo reuses unchanged build output.
|
||||
Tauri then restarts the app automatically.
|
||||
See [Tauri development](https://v2.tauri.app/develop/) and [Vite HMR](https://vite.dev/guide/features.html#hot-module-replacement) for details.
|
||||
|
||||
### Daily workflow
|
||||
|
||||
1. Start `pnpm tauri dev` in a terminal at the repository root.
|
||||
2. Open a test workspace with the folder button in the development window.
|
||||
3. Edit a source file in your code editor.
|
||||
4. Save the source file, then test the change in the development window.
|
||||
5. To stop the development session, press Ctrl+C in its terminal.
|
||||
|
||||
Use sample documents for feature tests. The desktop app reads and writes real files.
|
||||
Save open documents before a change that reloads or restarts the app.
|
||||
A reload can reset editor state, and a Rust restart ends terminal sessions.
|
||||
|
||||
`pnpm tauri dev` starts `pnpm dev` through `beforeDevCommand` in `src-tauri/tauri.conf.json`.
|
||||
Do not start a separate `pnpm dev` process for this workflow.
|
||||
The frontend uses port 1420, and Tauri loads `http://localhost:1420`.
|
||||
|
||||
### What needs a rebuild?
|
||||
|
||||
| Change or task | Action |
|
||||
| --- | --- |
|
||||
| Svelte, TypeScript, or CSS under `src/` | Save the source file. Vite updates the interface without a Rust rebuild. |
|
||||
| Plugin source in a sibling checkout | Run its documented checks and package command, then install the changed ZIP through Settings. |
|
||||
| Table Formulas source in `../RuneStone_Table_Formulas/` | Install that checkout's dependencies, then run `pnpm build:plugins` in RuneStone. Reinstall the changed ZIP through Settings. |
|
||||
| Rust code under `src-tauri/src/` | Save the source file. Tauri rebuilds the changed Rust code and restarts the app. |
|
||||
| Rust dependencies or build settings | Allow Cargo to compile the affected dependencies. These changes can take longer. |
|
||||
| JavaScript dependencies after a pull or branch change | Stop development, run `pnpm install --frozen-lockfile`, then start `pnpm tauri dev` again. |
|
||||
| Tauri configuration, capabilities, or Vite configuration | Restart `pnpm tauri dev` to check the new settings. Native changes can require compilation. |
|
||||
| Release or installer behavior | Use the [build guide](builds.md). Packaging requires a release build. |
|
||||
|
||||
Keep `src-tauri/target/` between sessions so Cargo can reuse its build cache.
|
||||
Do not run `cargo clean` as part of normal feature tests.
|
||||
An installed copy from the Start menu uses its packaged code and does not show source changes.
|
||||
Use the window that `pnpm tauri dev` opens.
|
||||
|
||||
## Stack
|
||||
|
||||
RuneStone uses Tauri 2 and Rust for the desktop host.
|
||||
The interface uses Svelte 5, TypeScript, and Vite.
|
||||
CodeMirror handles live Markdown editing, Monaco handles source editing, and xterm handles terminals.
|
||||
Windows is the first target. The older WriterHost component remains unused.
|
||||
|
||||
Use the [Linux development guide](linux.md) for source prerequisites, Browser preparation, and native desktop checks.
|
||||
Use the [Linux package build guide](builds.md#build-linux-packages) for Debian and AppImage builds.
|
||||
|
||||
See the setup steps below to install dependencies and run the desktop app.
|
||||
See the [user guide](user-guide.md) for current behavior and limits.
|
||||
See the [interface design reference](ui-design.md) for shared controls, dimensions, and visual checks. Agent instructions live in [AGENTS.md](../AGENTS.md).
|
||||
Use the [plugin development reference](plugin-development.md) for build examples, package requirements, releases, and the API.
|
||||
Use the [plugin host reference](plugin-host.md) for installation internals, recovery, and host checks.
|
||||
|
||||
## Product boundaries
|
||||
|
||||
RuneStone keeps workspace documents as ordinary local files.
|
||||
Basic Markdown table editing and rendering belong in the core.
|
||||
Users must retain access to workspace files when plugins are disabled.
|
||||
Store workspace display order, pins, and bookmarks in `.runestone/`.
|
||||
Store installed plugins and retained plugin settings in application data. See [plugin storage](plugin-host.md#storage-and-recovery).
|
||||
Prefer a local Git clone. Do not use a live network share as the sync path.
|
||||
|
||||
Native file access, file watching, search, Git, and terminal services belong in Rust.
|
||||
The [plugin development reference](plugin-development.md) defines the supported package format and host API.
|
||||
The [built-in browser runtime](#built-in-browser-runtime) has its own architecture and setup requirements.
|
||||
|
||||
The following remain outside the product scope:
|
||||
|
||||
- A plugin marketplace
|
||||
- Obsidian or VS Code plugin compatibility
|
||||
- Cloud sync, live collaboration, or mobile
|
||||
- A debugger or a full IDE
|
||||
- Auto-commit on save
|
||||
|
||||
Track future work and roadmaps in RuneStone Project Management.
|
||||
This guide is for developers who change RuneStone's source code. To use the app, see the [user guide](user-guide.md).
|
||||
|
||||
## Run from source
|
||||
|
||||
These steps are for developers. App users can use a supplied [Windows installer](installation.md). Linux and macOS source setup remains experimental.
|
||||
|
||||
### Requirements
|
||||
|
||||
- Node.js 24 and pnpm 10
|
||||
- A current stable Rust toolchain
|
||||
- Microsoft C++ Build Tools and Microsoft Edge WebView2 on Windows
|
||||
- Node.js 24 or later, and pnpm 10.
|
||||
- A current stable Rust toolchain.
|
||||
- The [Tauri prerequisites](https://v2.tauri.app/start/prerequisites/) for your platform.
|
||||
On Windows, these are the Microsoft C++ Build Tools and WebView2.
|
||||
On Linux, use the [Linux development guide](linux.md).
|
||||
|
||||
Use the [Tauri prerequisites guide](https://v2.tauri.app/start/prerequisites/) for native build dependencies.
|
||||
The [installation guide](installation.md) has separate Windows, Linux, and macOS routes.
|
||||
### First run
|
||||
|
||||
1. Download or clone this repository.
|
||||
2. Open a terminal in the repository folder.
|
||||
3. Run `pnpm install --frozen-lockfile`.
|
||||
4. Prepare the built-in Browser runtime using the [runtime steps](#built-in-browser-runtime) below.
|
||||
5. Run `pnpm tauri dev`.
|
||||
6. Use the folder button in the app to open a workspace or create one.
|
||||
1. Clone the repository: `https://git.knottywyvern.com/kwyvern/RuneStone`.
|
||||
2. In the repository folder, run `pnpm install --frozen-lockfile`.
|
||||
3. Prepare the browser runtime. See [Built-in browser runtime](#built-in-browser-runtime).
|
||||
4. Run `pnpm tauri dev`.
|
||||
5. In the app, use the folder button to open a test workspace.
|
||||
|
||||
See the [build guide](builds.md) to build a Windows installer.
|
||||
The first launch compiles the Rust app and its dependencies. Later launches reuse the Cargo cache in `src-tauri/target/`.
|
||||
Do not run `cargo clean` as part of normal work.
|
||||
|
||||
## Daily workflow
|
||||
|
||||
`pnpm tauri dev` starts Vite on port 1420 through `beforeDevCommand` in `src-tauri/tauri.conf.json`. Then it opens the app in a native window.
|
||||
Do not start a separate `pnpm dev` for this workflow.
|
||||
|
||||
| Change | What happens |
|
||||
| --- | --- |
|
||||
| Svelte, TypeScript, or CSS in `src/` | Vite updates the window. No Rust build. |
|
||||
| Rust code in `src-tauri/src/` | Cargo rebuilds the changed code, and Tauri restarts the app. |
|
||||
| Rust dependencies or build settings | Cargo compiles the affected crates. This can take several minutes. |
|
||||
| JavaScript dependencies, after a pull | Stop the session, run `pnpm install --frozen-lockfile`, and start it again. |
|
||||
| Tauri configuration, capabilities, or Vite configuration | Restart `pnpm tauri dev`. |
|
||||
| A plugin in a sibling repository | Build and package that plugin, then install the new ZIP through Settings. See [Build examples](plugin-development.md#build-examples). |
|
||||
| Installer or release behavior | Use the [build guide](builds.md). |
|
||||
|
||||
The app reads and writes real files. Use a test workspace with sample documents.
|
||||
Save open documents before a change that restarts the app. A Rust restart ends terminal sessions.
|
||||
An installed copy of RuneStone does not show source changes. Use the window that `pnpm tauri dev` opens.
|
||||
|
||||
To see frontend errors, press Ctrl+Shift+I in the development window to open the web inspector.
|
||||
Rust errors appear in the terminal that runs `pnpm tauri dev`.
|
||||
|
||||
## Architecture
|
||||
|
||||
RuneStone is a Tauri 2 app. A Rust host gives native services to a Svelte 5 and TypeScript interface.
|
||||
CodeMirror drives the Writer view, and Monaco drives the source editor.
|
||||
Windows is the primary platform. macOS and Linux builds are experimental.
|
||||
|
||||
### Desktop host: `src-tauri/src/`
|
||||
|
||||
| Module | Responsibility |
|
||||
| --- | --- |
|
||||
| `lib.rs` | App setup, command registration, window events |
|
||||
| `workspace.rs` | The workspace root of each window, path checks, atomic saves, the file watcher, search |
|
||||
| `plugins.rs` | Plugin package review, installation, enable state, removal, and recovery |
|
||||
| `plugin_sources.rs` | Plugin downloads from Gitea releases |
|
||||
| `git.rs` | The Git service for the Git plugin. It runs the `git` program. |
|
||||
| `pty.rs`, `terminal_platform.rs` | Pseudo-terminals for the Terminal plugin |
|
||||
| `browser.rs` | The process of the built-in browser engine |
|
||||
| `backgrounds.rs` | Background image folders for themes and plugins |
|
||||
| `spelling.rs` | Spelling suggestions from the operating system (Windows) |
|
||||
| `settings.rs`, `theme.rs` | The Settings window and theme export |
|
||||
| `completion.rs` | A local proxy to a completion model server |
|
||||
|
||||
The interface calls Rust commands through Tauri `invoke`. Most calls go through the wrappers in `src/lib/workspace/api.ts`.
|
||||
A new command needs an entry in `generate_handler!` in `lib.rs`, in the command list in `src-tauri/build.rs`, and in the capability files in `src-tauri/capabilities/`.
|
||||
|
||||
### Interface: `src/lib/`
|
||||
|
||||
| Folder | Responsibility |
|
||||
| --- | --- |
|
||||
| `layout/` | The app shell (`Workbench.svelte`), the file tree, tabs, panes, Settings, and dialogs |
|
||||
| `editor/` | The Writer view (`LiveWriter.svelte`), the source editor (`EditorHost.svelte`), tables, links, images, and editor menus |
|
||||
| `workspace/` | Tauri wrappers, document buffers, the note index and backlinks, paths, and templates |
|
||||
| `plugins/` | The plugin runtime, the SDK types (`sdk.ts`), and Settings → Plug-ins |
|
||||
| `browser/` | The interface of the built-in browser |
|
||||
| `completion/`, `git/` | Contracts and services that plugins use |
|
||||
| `theme/` | Appearance settings, palettes, and the theme tokens (`tokens.css`) |
|
||||
| `ui/` | Shared menus, pickers, and action icons |
|
||||
| `i18n/` | Interface text in English, French, Japanese, and Simplified Chinese |
|
||||
|
||||
### Other folders
|
||||
|
||||
| Folder | Content |
|
||||
| --- | --- |
|
||||
| `browser-runtime/` | The browser engine, its tests, filter lists, and third-party notices |
|
||||
| `scripts/` | Unit tests (`*.spec.ts`), browser smoke tests (`*.smoke.mjs`), and build and package tools |
|
||||
| `fixtures/` | Sample documents, a sample plugin, and a completion test page |
|
||||
| `docs/` | User and developer documentation |
|
||||
|
||||
### Where data lives
|
||||
|
||||
| Data | Location |
|
||||
| --- | --- |
|
||||
| Documents | Ordinary files in the workspace folder |
|
||||
| Workspace state: tab order, pins, bookmarks, templates, Project Management boards | `.runestone/` in the workspace |
|
||||
| Installed plugins and their settings | The app data folder. See [plugin storage](plugin-host.md#storage-and-recovery). |
|
||||
|
||||
## Product boundaries
|
||||
|
||||
- Workspace documents stay ordinary local files. Users keep access to them when plugins are disabled.
|
||||
- The core includes basic Markdown table editing and rendering.
|
||||
- Native file access, file watching, search, Git, and terminals belong in Rust.
|
||||
- Optional features ship as plugins. The [plugin development reference](plugin-development.md) defines the package format and the API.
|
||||
- For sync, prefer a local Git clone. Do not use a live network share as the sync path.
|
||||
|
||||
These stay outside the product:
|
||||
|
||||
- A plugin marketplace
|
||||
- Compatibility with Obsidian or VS Code plugins
|
||||
- Cloud sync, live collaboration, or a mobile app
|
||||
- A debugger or a full IDE
|
||||
- Automatic commits on save
|
||||
|
||||
Track plans and roadmaps in RuneStone Project Management, not in these docs.
|
||||
|
||||
## Checks
|
||||
|
||||
Run checks from the repository folder in a second terminal.
|
||||
These commands do not require an installer.
|
||||
Run these commands from the repository folder. They do not need an installer.
|
||||
|
||||
For type errors while you edit:
|
||||
| Command | Checks |
|
||||
| --- | --- |
|
||||
| `pnpm check` | Svelte and TypeScript types |
|
||||
| `pnpm test` | Unit tests in `scripts/*.spec.ts` |
|
||||
| `cargo test --manifest-path src-tauri/Cargo.toml --lib` | Rust unit tests |
|
||||
| `pnpm build` | The production frontend build |
|
||||
| `pnpm check:menus` | The inventory of menu surfaces. See [Interface design](ui-design.md). |
|
||||
|
||||
```powershell
|
||||
pnpm check:watch
|
||||
```
|
||||
To run one test file, use `node --experimental-strip-types --test scripts/tableSelection.spec.ts`.
|
||||
For type errors while you edit, run `pnpm check:watch`.
|
||||
|
||||
For one test file:
|
||||
Some tests need files from outside this repository:
|
||||
|
||||
```powershell
|
||||
node --experimental-strip-types --test scripts/tableSelection.spec.ts
|
||||
```
|
||||
|
||||
For the full set of checks:
|
||||
|
||||
```sh
|
||||
pnpm build:plugins
|
||||
pnpm check
|
||||
pnpm test
|
||||
pnpm build
|
||||
cargo test --manifest-path src-tauri/Cargo.toml --lib --offline
|
||||
```
|
||||
|
||||
The offline Rust command requires cached dependencies. Omit `--offline` if Cargo needs to download them.
|
||||
`pnpm build` checks the production frontend build. It is not required after each source edit.
|
||||
`pnpm preview` serves the last frontend build and does not watch source changes.
|
||||
Use `pnpm tauri build` to build the release desktop app.
|
||||
|
||||
The Rust tests cover real terminal shells, working directories, Unicode output,
|
||||
resizing, exit status, and session termination. Native terminal tests launch each
|
||||
detected shell profile and check shell prompt integration.
|
||||
- `scripts/plugins.spec.ts` and `scripts/tableFormulas.spec.ts` import the compiled Table Formulas package. Run `pnpm build:plugins` first. See [Build examples](plugin-development.md#build-examples).
|
||||
- `scripts/installerVersion.spec.ts` needs the NSIS compiler that the Tauri CLI downloads on Windows.
|
||||
- The Rust terminal tests start the real shells on the computer.
|
||||
|
||||
## Browser smoke tests
|
||||
|
||||
`pnpm dev` starts only the Vite server at `http://127.0.0.1:1420`.
|
||||
A browser can show the interface, but real folder access, file writes, and terminals require the desktop host.
|
||||
Use `pnpm tauri dev` for manual tests of those features.
|
||||
Smoke tests run the real interface in headless Chromium with a mock of the desktop host.
|
||||
They do not replace tests in the native app. Real folder access, file writes, and terminals need `pnpm tauri dev`.
|
||||
|
||||
Before tests that use plugin packages, build each required plugin with its own command.
|
||||
Use the [Table Formulas example](plugin-development.md#example-table-formulas) and the [Terminal example](plugin-development.md#example-terminal).
|
||||
`pnpm build:plugins` builds only Table Formulas.
|
||||
See the [plugin host checks](plugin-host.md#modules-and-checks) for compiled package paths and overrides.
|
||||
These tests load the compiled packages through the production module loader.
|
||||
The browser tests use the real interface with mocked desktop communication.
|
||||
They do not replace native desktop tests.
|
||||
1. Make Playwright available. It is not a project dependency.
|
||||
Set `PLAYWRIGHT_MODULE` to the folder of an installed `playwright` package.
|
||||
If that package has no Chromium, set `CHROME_PATH` to an installed browser.
|
||||
2. Start the frontend with `pnpm dev`, or use the server of a running `pnpm tauri dev` session.
|
||||
3. In a second terminal, run one script, for example `node scripts/workbench.smoke.mjs`.
|
||||
|
||||
1. Install Playwright, or set `PLAYWRIGHT_MODULE` to a shared Playwright package.
|
||||
2. Start the frontend with `pnpm dev`, or reuse the server from an active `pnpm tauri dev` session.
|
||||
3. In a second terminal, run a smoke script, such as `node scripts/workbench.smoke.mjs`.
|
||||
|
||||
Playwright is not a dependency in `package.json`.
|
||||
Set `PLAYWRIGHT_MODULE` to the absolute path of an existing Playwright package if you use a shared installation.
|
||||
That package must have Chromium installed, or you must select an installed browser with `CHROME_PATH`.
|
||||
|
||||
For example, in PowerShell, replace these example paths with your local paths:
|
||||
Example for PowerShell. Replace the paths with your own:
|
||||
|
||||
```powershell
|
||||
$env:PLAYWRIGHT_MODULE = "C:\tools\browser-tests\node_modules\playwright"
|
||||
@@ -187,46 +161,39 @@ $env:CHROME_PATH = "C:\Program Files\Google\Chrome\Application\chrome.exe"
|
||||
node scripts/workbench.smoke.mjs
|
||||
```
|
||||
|
||||
| Script | Coverage |
|
||||
| Variable | Use |
|
||||
| --- | --- |
|
||||
| `scripts/workbench.smoke.mjs` | The Svelte, Monaco, and xterm interface |
|
||||
| `scripts/pluginInstall.smoke.mjs` | Package review, external commands and views, the uninstall confirmation, and cleanup |
|
||||
| `scripts/plugins.smoke.mjs` | Plugin toggles, formula source preservation, terminal cleanup, and preferences across windows |
|
||||
| `../RuneStone_Terminal/scripts/terminal.smoke.mjs` | Terminal groups, single-session layout, menus, profiles, history, tasks, settings, and editor actions |
|
||||
| `scripts/images.smoke.mjs` | Image drops, clipboard imports, source editing, zoom, undo, failed writes, and tab changes during imports |
|
||||
| `scripts/imageNavigation.smoke.mjs` | Navigator pointer drags, hidden image source, selection, context actions, inline/reference images, and drag cancellation |
|
||||
| `SMOKE_URL` | The frontend address. The default is `http://127.0.0.1:1420`. |
|
||||
| `RUNESTONE_TERMINAL_DIST` | The compiled Terminal plugin. The default is `../RuneStone_Terminal/dist`. |
|
||||
| `RUNESTONE_TABLE_FORMULAS_ROOT`, `RUNESTONE_GIT_ROOT` | Sibling plugin checkouts in other folders |
|
||||
|
||||
Additional smoke scripts live in `scripts/`.
|
||||
Smoke tests for plugins load compiled packages through the real module loader. Build those plugins first.
|
||||
`browserInteraction.smoke.mjs` and `browserFields.smoke.mjs` also start the browser engine from `browser-runtime`.
|
||||
|
||||
A few scripts attach to a running desktop app instead, through the WebView2 remote-debugging port.
|
||||
Examples: `spellingNative.smoke.mjs`, `kanbanNative.smoke.mjs`, and `browserNativeAcceptance.mjs`.
|
||||
Before you start the app, set `WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS=--remote-debugging-port=<port>`. Each script states its port and variables at the top.
|
||||
|
||||
## Built-in browser runtime
|
||||
|
||||
The browser interface is in `src/lib/browser/`. The browser engine, its tests, and its notices are in `browser-runtime/`.
|
||||
The installer includes the staged engine from `src-tauri/browser-engine/`.
|
||||
|
||||
1. Run `npm ci --prefix browser-runtime`.
|
||||
2. Run `pnpm browser:check` and `pnpm browser:test`.
|
||||
3. Run `pnpm browser:test:engine` for the native engine tests.
|
||||
4. Run `npm --prefix browser-runtime run package`.
|
||||
5. Run `pnpm browser:stage` before you build an installer.
|
||||
|
||||
Each browser window gets a session token at startup. Native requests check that token, and cleanup revokes it.
|
||||
|
||||
## Development help
|
||||
|
||||
| Problem | Action |
|
||||
| --- | --- |
|
||||
| Port 1420 is already in use | Stop the other RuneStone development server in its terminal, then retry. Vite uses a fixed port. |
|
||||
| The app still shows the old interface | Use the development window. Check the terminal for compile errors, then restart the development command if needed. |
|
||||
| Browser view says desktop features require `pnpm tauri dev` | Start that command and use its native window for real workspace and terminal tests. |
|
||||
| Windows cannot find `link.exe`, or Rust cannot link the app | Install the C++ build tools and Windows SDK from the Tauri prerequisites guide above. Open a new terminal. |
|
||||
| A smoke test cannot find Playwright or Chromium | Set `PLAYWRIGHT_MODULE` to an installed package. Install its Chromium browser or set `CHROME_PATH`. |
|
||||
| Cargo reports missing dependencies with `--offline` | Run the command without `--offline` while connected to the internet. |
|
||||
|
||||
Read Rust errors in the terminal that runs `pnpm tauri dev`.
|
||||
In the Windows development window, press Ctrl+Shift+I to open the web inspector.
|
||||
Use its console for frontend errors.
|
||||
See [Tauri's inspector instructions](https://v2.tauri.app/develop/#opening-the-web-inspector).
|
||||
## Built-in browser runtime
|
||||
|
||||
The browser interface lives in `src/lib/browser`. Its Electron runtime, tests, assets, and third-party notices live in `browser-runtime`.
|
||||
The host no longer needs a sibling Browser checkout. Keep the old checkout until its local work and history no longer need preservation.
|
||||
|
||||
1. Run `npm ci --prefix browser-runtime` to install the pinned runtime dependencies.
|
||||
2. Run `pnpm browser:check` and `pnpm browser:test` for source checks.
|
||||
3. Run `pnpm browser:test:engine` for native Electron checks.
|
||||
4. Run `npm --prefix browser-runtime run package` to prepare the runtime.
|
||||
5. Run `pnpm browser:stage` before a host installer build.
|
||||
|
||||
Runtime compilation and staging do not produce a new RuneStone installer version.
|
||||
The installer includes the staged runtime from `src-tauri/browser-engine`. Follow the project version policy when creating that installer.
|
||||
Use `scripts/browserInteraction.smoke.mjs` to check the host interface against a real runtime.
|
||||
Keep its results separate from the native Tauri window checks.
|
||||
|
||||
Browser startup obtains a session token for its window. Native requests check that token, and cleanup revokes it.
|
||||
| Port 1420 is in use | Stop the other development server, then try again. Vite uses a fixed port. |
|
||||
| The window shows the old interface | Look for compile errors in the terminal. Restart `pnpm tauri dev` if necessary. |
|
||||
| A page says that desktop features need `pnpm tauri dev` | You opened the Vite server in a browser. Use the native window. |
|
||||
| Windows cannot find `link.exe` | Install the C++ build tools and the Windows SDK from the Tauri prerequisites. Open a new terminal. |
|
||||
| A smoke test cannot find Playwright or Chromium | Set `PLAYWRIGHT_MODULE`. Install its Chromium, or set `CHROME_PATH`. |
|
||||
| `cargo test --offline` reports missing crates | Run the command without `--offline` one time while you are online. |
|
||||
|
||||
Reference in New Issue
Block a user