Add completion, browser integration, and workspace improvements
This commit is contained in:
+122
@@ -0,0 +1,122 @@
|
||||
# Linux readiness
|
||||
|
||||
[Developer guide](development.md) · [Release guide](releases.md)
|
||||
|
||||
Linux support is experimental. No native Linux build or desktop test is recorded yet.
|
||||
Voice typing is outside the Linux acceptance criteria.
|
||||
The first target is one known Linux desktop, with a local workspace and Bash.
|
||||
|
||||
## 1. Record the target
|
||||
|
||||
Run these commands on the Linux box:
|
||||
|
||||
```sh
|
||||
cat /etc/os-release
|
||||
uname -m
|
||||
printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_DESKTOP" "$XDG_SESSION_TYPE"
|
||||
```
|
||||
|
||||
Record the distribution, version, processor architecture, desktop, and session type with the test results.
|
||||
Test the session you use first. Test both Wayland and X11 before claiming support for both.
|
||||
An Intel/AMD build does not establish ARM support.
|
||||
|
||||
## 2. Prepare the Linux build environment
|
||||
|
||||
Install Node.js 24, pnpm 10, and stable Rust on the Linux box.
|
||||
Use a separate Linux checkout. Do not copy Windows `node_modules` or `src-tauri/target` folders.
|
||||
|
||||
Install the system packages for your distribution from [Tauri's Linux prerequisites](https://v2.tauri.app/start/prerequisites/#linux).
|
||||
For Ubuntu or Debian with WebKitGTK 4.1 available, use:
|
||||
|
||||
```sh
|
||||
sudo apt update
|
||||
sudo apt install build-essential pkg-config curl wget file \
|
||||
libwebkit2gtk-4.1-dev libxdo-dev libssl-dev \
|
||||
libayatana-appindicator3-dev librsvg2-dev
|
||||
```
|
||||
|
||||
These commands are an Ubuntu/Debian example, not instructions for every Linux distribution.
|
||||
The first Rust build and package build need internet access for dependencies and packaging tools.
|
||||
|
||||
## 3. Check the source and open the app
|
||||
|
||||
From the Linux checkout, install the project dependencies:
|
||||
|
||||
```sh
|
||||
pnpm install --frozen-lockfile
|
||||
```
|
||||
|
||||
The full test suite needs the Table formulas package.
|
||||
Clone `RuneStone_TableFormulas` beside RuneStone and install its dependencies, as described in the [plugin guide](plugins.md).
|
||||
Then run these checks from RuneStone:
|
||||
|
||||
```sh
|
||||
pnpm build:plugins
|
||||
pnpm check
|
||||
pnpm test
|
||||
pnpm build
|
||||
cargo test --manifest-path src-tauri/Cargo.toml --lib --locked
|
||||
```
|
||||
|
||||
Run the desktop app in your graphical Linux session:
|
||||
|
||||
```sh
|
||||
pnpm tauri dev
|
||||
```
|
||||
|
||||
A successful build does not establish desktop compatibility.
|
||||
Browser tests use mocked desktop calls and Chromium. They do not test Linux file access or WebKitGTK behavior.
|
||||
|
||||
## 4. Complete the desktop checks
|
||||
|
||||
Use a disposable workspace outside the installation folder.
|
||||
Record each result, the source commit, and any error message.
|
||||
All checks below remain unverified on Linux.
|
||||
|
||||
| Area | Pass criteria |
|
||||
| --- | --- |
|
||||
| Launch and windows | Open from the desktop, move, resize, minimize, maximize, and close. Unsaved edits trigger the close guard. |
|
||||
| Files and paths | Create, save, reopen, rename, copy, and delete files. Check spaces, Unicode, and distinct `Note.md` and `note.md` files. |
|
||||
| External edits | Edit a file in another editor. RuneStone detects the change and prevents silent replacement of conflicting edits. |
|
||||
| Editors | Edit Markdown, source code, tables, images, and diagrams. Check undo, keyboard shortcuts, and both themes. |
|
||||
| Clipboard and dialogs | Copy and paste text, tables, and images. Check folder selection, external links, and file reveal. |
|
||||
| Plugins | Install plugin ZIPs through Settings, enable them, restart, disable them, and remove them. Check plugin data persistence. |
|
||||
| Terminal plugin | Install the Terminal ZIP. Bash starts in the workspace, accepts Unicode, resizes, and exits when its session closes. |
|
||||
| Settings | Change preferences, restart, and confirm persistence. Check separate workspace windows. |
|
||||
|
||||
Install the Terminal package separately as described in the [plugin guide](plugins.md).
|
||||
Check terminal profiles after a desktop launch too. A desktop launcher can have a different `PATH` from an interactive shell.
|
||||
|
||||
Current filename rules reject some names that Linux permits, including colons and backslashes.
|
||||
Use ordinary portable filenames for the first trial. Record unsupported names as a limitation.
|
||||
Mounted network shares need separate tests because Linux mount paths do not reliably select the current polling fallback.
|
||||
Do not claim network workspace support from a local-disk test.
|
||||
|
||||
## 5. Build and test a package
|
||||
|
||||
After the desktop checks pass, build on Linux for the target processor architecture.
|
||||
Choose the package format that matches the trial:
|
||||
|
||||
```sh
|
||||
# Ubuntu or Debian
|
||||
pnpm tauri build --bundles deb -- --locked
|
||||
|
||||
# AppImage trial
|
||||
pnpm tauri build --bundles appimage -- --locked
|
||||
```
|
||||
|
||||
Do not use `pnpm build:installer` on Linux. That command selects the Windows installer.
|
||||
Packages appear under `src-tauri/target/release/bundle/deb/` or `src-tauri/target/release/bundle/appimage/`.
|
||||
|
||||
Install the Debian package with the distribution package manager, or make the AppImage executable and open it.
|
||||
Test launch without development tools, same-version reinstall, upgrade, and removal on a separate test account.
|
||||
Reinstall and upgrade must preserve settings and workspace files. Removal must preserve workspaces outside the installation folder.
|
||||
|
||||
For shared packages, build on the oldest distribution you intend to support that supplies WebKitGTK 4.1.
|
||||
A package built on a newer system can require libraries unavailable on an older system.
|
||||
An AppImage does not remove this compatibility limit.
|
||||
See [Tauri's AppImage guidance](https://v2.tauri.app/distribute/appimage/) and [Debian packaging guidance](https://v2.tauri.app/distribute/debian/).
|
||||
|
||||
Call a distribution supported only after its native tests and package checks pass.
|
||||
Repeat the automated checks on a Linux runner before each Linux release.
|
||||
No Linux automation is configured yet. Add it when the build host and target distribution are known.
|
||||
Reference in New Issue
Block a user