Add workspace links, restore tabs, and update project guides
This commit is contained in:
+47
-216
@@ -1,17 +1,25 @@
|
||||
# Linux readiness
|
||||
# Linux development
|
||||
|
||||
[Complete Ubuntu setup commands](../README.md#linux-ubuntu-2404-lts-intelamd-64-bit) · [Developer guide](development.md)
|
||||
[Development guide](development.md) · [Linux installation and updates](installation.md#install-on-linux) · [Build Linux packages](builds.md#build-linux-packages)
|
||||
|
||||
Linux support is experimental. Limited native validation is recorded below;
|
||||
the complete desktop and installer acceptance checks remain outstanding.
|
||||
Voice typing is outside the Linux acceptance criteria.
|
||||
The initial target is Ubuntu 24.04 LTS, x86_64, with a local workspace and Bash.
|
||||
This is a validation target, not a claim of tested support. Record the actual host below;
|
||||
results on another distribution do not establish Ubuntu compatibility.
|
||||
This guide covers Linux source development, Browser preparation, and native desktop checks.
|
||||
To install a supplied RuneStone package, use [Installation and updates](installation.md#install-on-linux).
|
||||
Past build and test results are in the [Linux validation reference](archive/linux-validation-2026-10.md).
|
||||
|
||||
## 1. Record the target
|
||||
## Development prerequisites
|
||||
|
||||
Run these commands on the Linux box:
|
||||
Use a Linux source checkout with Node.js 24, pnpm 10, and a stable Rust toolchain.
|
||||
See the [shared development requirements](development.md#requirements) for repository setup.
|
||||
Use [Tauri's Linux prerequisites](https://v2.tauri.app/start/prerequisites/#linux) for native libraries, including GTK and WebKitGTK 4.1.
|
||||
The first build needs internet access for dependencies.
|
||||
|
||||
Open a terminal with Node.js, pnpm, and Cargo available on its PATH.
|
||||
If a command is missing, load the environment configured by its installer before you continue.
|
||||
Do not copy Windows `node_modules`, `src-tauri/target`, or `browser-engine` folders into Linux.
|
||||
|
||||
## Record the development environment
|
||||
|
||||
Run these commands in the Linux session used for native checks:
|
||||
|
||||
```sh
|
||||
cat /etc/os-release
|
||||
@@ -19,43 +27,14 @@ 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.
|
||||
Record the distribution, version, processor architecture, desktop, and session type with the source commit and 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
|
||||
## Build and run from source
|
||||
|
||||
Use the [complete README setup](../README.md#linux-ubuntu-2404-lts-intelamd-64-bit) for a first Ubuntu 24.04 trial.
|
||||
It includes every tool installation command, source download, Browser preparation, and native launch.
|
||||
Close the app and press Ctrl+C before the checks below.
|
||||
Do not copy Windows `node_modules` or `src-tauri/target` folders into Linux.
|
||||
|
||||
The commands use the project's configured private clone address.
|
||||
Source access is required. No public source-download location is configured.
|
||||
The first build needs internet access for tools and dependencies.
|
||||
|
||||
### Command sources
|
||||
|
||||
The setup instructions were checked against these primary sources on October 15, 2026:
|
||||
|
||||
- [Tauri Linux prerequisites](https://v2.tauri.app/start/prerequisites/#linux): native development libraries and Rust installation.
|
||||
- [Node.js downloads](https://nodejs.org/en/download) and [nvm installation](https://github.com/nvm-sh/nvm#install--update-script): Node.js 24 and its per-user installer.
|
||||
- [pnpm 10 installation](https://pnpm.io/10.x/installation#using-npm): the npm installation method.
|
||||
- [Rust installation](https://rust-lang.github.io/rustup/installation/index.html): the Rust toolchain and account environment.
|
||||
- [Ubuntu 24.04 packages](https://packages.ubuntu.com/noble/): distribution package names, including the `t64` runtime libraries.
|
||||
|
||||
Browser commands come from `browser-runtime/package.json` and its packaging and staging scripts in this repository.
|
||||
The README commands were reviewed on Windows. They were not executed on a clean Ubuntu 24.04 system.
|
||||
|
||||
## 3. Check the source and open the app
|
||||
|
||||
Load the account tools and enter the source folder before these checks:
|
||||
|
||||
```sh
|
||||
. "$HOME/.nvm/nvm.sh"
|
||||
. "$HOME/.cargo/env"
|
||||
cd "$HOME/RuneStone"
|
||||
```
|
||||
Run the commands below from the RuneStone repository root in a graphical Linux session.
|
||||
Commands come from [package.json](../package.json) and [browser-runtime/package.json](../browser-runtime/package.json).
|
||||
|
||||
From the Linux checkout, install the project dependencies:
|
||||
|
||||
@@ -86,9 +65,13 @@ work around sandbox failures with `--no-sandbox` or by running RuneStone as root
|
||||
Test the Browser on the intended distro, including its user-namespace policy.
|
||||
The native host uses WebKitGTK and the Browser uses Electron; both need testing.
|
||||
|
||||
### Source checks
|
||||
|
||||
The full test suite needs the Table Formulas package.
|
||||
Clone `RuneStone_Table_Formulas` beside RuneStone and install its dependencies, as described in the [plugin guide](plugins.md).
|
||||
Then run these checks from RuneStone:
|
||||
Clone `RuneStone_Table_Formulas` beside RuneStone.
|
||||
Install its dependencies as described in the [Table Formulas build example](plugin-development.md#example-table-formulas).
|
||||
|
||||
`pnpm build:plugins` builds only Table Formulas. Run these checks from the RuneStone repository root:
|
||||
|
||||
```sh
|
||||
pnpm build:plugins
|
||||
@@ -98,21 +81,27 @@ pnpm build
|
||||
cargo test --manifest-path src-tauri/Cargo.toml --lib --locked
|
||||
```
|
||||
|
||||
### Development session
|
||||
|
||||
Run the desktop app in your graphical Linux session:
|
||||
|
||||
```sh
|
||||
pnpm tauri dev
|
||||
```
|
||||
|
||||
This command starts Vite and opens the native desktop app. Keep the terminal open during development.
|
||||
Save your work and press Ctrl+C in that terminal to stop the session.
|
||||
See the [daily workflow](development.md#daily-workflow) for source edits and rebuild behavior.
|
||||
|
||||
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
|
||||
## Desktop checks
|
||||
|
||||
Use a disposable workspace outside the installation folder.
|
||||
Record each result, the source commit, and any error message.
|
||||
The complete acceptance checks below remain unverified on Linux. The validation
|
||||
record distinguishes the limited smoke checks already completed.
|
||||
Use this checklist for native behavior after source changes. Voice typing is outside the Linux acceptance criteria.
|
||||
Keep each result separate from the [historical validation records](archive/linux-validation-2026-10.md).
|
||||
|
||||
| Area | Pass criteria |
|
||||
| --- | --- |
|
||||
@@ -126,183 +115,25 @@ record distinguishes the limited smoke checks already completed.
|
||||
| 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).
|
||||
Build Terminal with the [Terminal example](plugin-development.md#example-terminal), then [install its ZIP](plugins.md#install-a-plugin).
|
||||
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.
|
||||
Use ordinary portable filenames for baseline checks. 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
|
||||
## Package builds
|
||||
|
||||
After the desktop checks pass, build on Linux for the target processor architecture.
|
||||
Choose the package format that matches the trial:
|
||||
Use [Build Linux packages](builds.md#build-linux-packages) for Debian and AppImage commands, release handling, and package checks.
|
||||
|
||||
```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.
|
||||
These direct Tauri commands do not manage the project release version or archive a
|
||||
release. Before making a distributable, select the next version using the
|
||||
[version policy](../AGENTS.md#versioning), keep all four version fields consistent,
|
||||
and restore them if packaging fails. Move completed packages into
|
||||
`releases/<version>/` together with checksums and the recorded source/test results;
|
||||
do not leave duplicate completed packages in the toolchain bundle directory.
|
||||
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.
|
||||
|
||||
## Setup help
|
||||
## Development help
|
||||
|
||||
| Problem | Action |
|
||||
| --- | --- |
|
||||
| `sudo` asks for a password | Type your Ubuntu account password, then press Enter. The terminal does not show the characters. |
|
||||
| Git cannot reach `10.0.0.5` | Connect to the maintainer's network, or request a reachable clone address. |
|
||||
| Git requests a username or password | Use repository credentials from the maintainer. Source access is separate from your Ubuntu account. |
|
||||
| `destination path 'RuneStone' already exists` | Keep that folder. For an existing checkout, use the later-launch commands in the README. |
|
||||
| `node`, `pnpm`, or `cargo` is not found | Use the later-launch block to load the account environment. Check that the earlier tool installation completed. |
|
||||
| A system package cannot be found | Check your Ubuntu version with `cat /etc/os-release`. This command list targets Ubuntu 24.04. |
|
||||
| The Browser runtime is missing | From the source folder, repeat `npm ci --prefix browser-runtime`, then its `package` command and `pnpm browser:stage`. |
|
||||
| Electron reports a sandbox or user-namespace error | Keep the sandbox enabled. Report the error and Ubuntu version to the maintainer. Do not run RuneStone as root. |
|
||||
| The first build stops | Keep the first error text and failed command. Report them with your Ubuntu version and available memory/disk space. |
|
||||
| Node.js, pnpm, or Cargo is missing | Load your toolchain environment and check the [development prerequisites](#development-prerequisites). |
|
||||
| The Browser runtime is missing | From the repository root, repeat the Browser dependency, package, and staging commands in [Build and run from source](#build-and-run-from-source). |
|
||||
| Electron reports a sandbox or user-namespace error | Keep the sandbox enabled. Record the error and distribution version. Run RuneStone as an ordinary desktop user. |
|
||||
| A build stops | Record the first error, failed command, distribution version, and available memory and disk space. |
|
||||
|
||||
Use the [validation checks](#4-complete-the-desktop-checks) after the first launch.
|
||||
|
||||
## Validation record: 2026-10-14
|
||||
|
||||
Validated on `desk`: Ubuntu 26.04.1 LTS, x86_64, four CPUs, 7.2 GiB reported RAM,
|
||||
XFCE/X11, Linux 7.0.0-38-generic. The execution environment reports a container
|
||||
boundary and underlying KVM virtualization. This does not validate Ubuntu 24.04,
|
||||
Wayland, ARM, or another distribution.
|
||||
|
||||
Source: base commit `edef2520afc92f7896454bf94a8ea15bbf4e1684` plus the Linux
|
||||
readiness patch and the Browser window portability fix. The original transferred
|
||||
source archive had SHA-256
|
||||
`b16643bfc7a634e5a5d17a7c246e87d95a458c06fb8afb45899a28a460e03047`.
|
||||
The first native compile found a Windows-only `drag_and_drop(false)` call in
|
||||
`src-tauri/src/browser.rs`; it now uses the cross-platform
|
||||
`disable_drag_drop_handler()` API already used by the settings window.
|
||||
|
||||
Toolchain: Node.js 24.22.0, pnpm 10.34.7, Rust/Cargo 1.93.1, GLib 2.88.0,
|
||||
GTK 3.24.52, and WebKitGTK 4.1 version 2.52.6. Native builds used one job and
|
||||
`CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0` to conserve RAM and disk.
|
||||
|
||||
| Check | Recorded result |
|
||||
| --- | --- |
|
||||
| `pnpm install --frozen-lockfile` and `npm ci --prefix browser-runtime` | Passed |
|
||||
| `pnpm check` | Passed; zero errors and warnings |
|
||||
| `pnpm build` | Passed; bundle-size warnings remain |
|
||||
| `pnpm browser:check` and `pnpm browser:test` | Passed; 44 Browser unit tests |
|
||||
| Browser Linux packaging and `pnpm browser:stage` | Passed; x86_64 runtime staged |
|
||||
| `npm --prefix browser-runtime run test:packaged` | Passed; all 12 engine smoke checks, sandbox enabled |
|
||||
| `pnpm test` | 238 passed, one skipped, two test files failed because the Table Formulas package was absent |
|
||||
| `cargo test --manifest-path src-tauri/Cargo.toml --lib --locked --offline -j 1` | Passed after the portability fix; 92 passed, three ignored |
|
||||
| `pnpm tauri build --debug --no-bundle -- --locked --offline -j 1` | Passed; native debug executable, version 0.1.34 |
|
||||
| Tauri X11 launch | Visible 1400 by 900 window; rendered frontend verified with an internal capture |
|
||||
| Host Browser integration | Open Browser opened a Browser tab with address and profile controls; no webpage-navigation claim |
|
||||
|
||||
GUI checks used isolated task-local XDG settings/data directories, and the test
|
||||
processes were closed afterward. Virtual-GPU EGL/VAAPI warnings occurred; they did
|
||||
not prevent these smoke checks. No sandbox, security, swap, or permission workaround
|
||||
was used. Existing user settings and workspaces were not used.
|
||||
|
||||
No installer or release package was produced, versions were unchanged, and nothing
|
||||
was published. Remaining work includes supplying/building `RuneStone_Table_Formulas`
|
||||
and rerunning the full source suite, completing the desktop checks above, and
|
||||
validating Debian/AppImage installation and lifecycle behavior on the intended
|
||||
target distribution. These results do not establish full Linux support.
|
||||
|
||||
### Initial bounded release attempt
|
||||
|
||||
The normal release profile (`opt-level = 3`, full LTO, one codegen unit) was
|
||||
attempted with one Cargo job, locked/offline dependencies, and the already-tested
|
||||
frontend output. Before starting, desk had about 2.0 GiB available RAM, effectively
|
||||
full 4.0 GiB swap, and 4.1 GiB free disk. A temporary user service bounded the
|
||||
entire build to 1,677,721,600 bytes of RAM and no additional swap.
|
||||
|
||||
The release build reached the GTK Rust crate but exceeded that hard cap. The
|
||||
service recorded `Result=oom-kill`, `MemoryPeak=1677721600`, and zero swap use after
|
||||
14 minutes 47 seconds. Soft memory throttling was tried first; it caused repeated
|
||||
reclaim, so the soft threshold was removed while retaining the hard cap. No larger
|
||||
memory allowance was attempted. The temporary service was cleaned up; dependency
|
||||
and build caches were preserved. About 3.3 GiB disk remained afterward.
|
||||
|
||||
No optimized executable, Debian package, or AppImage was produced. AppImage
|
||||
bundling was not attempted because it needs the release executable. Package
|
||||
contents, generated dependency metadata, and installation lifecycle therefore
|
||||
remain unvalidated. `ldd` found no missing libraries for the previously tested
|
||||
debug host and staged Browser on desk. In addition to host libraries, the Browser
|
||||
needs NSPR/NSS, CUPS, and ALSA libraries; their Ubuntu 26.04 providers include
|
||||
`libnspr4`, `libnss3`, `libcups2t64`, and `libasound2t64`. Check the eventual package
|
||||
declares the appropriate runtime dependencies; the current machine having them
|
||||
installed does not prove that package metadata is complete.
|
||||
|
||||
The smallest next step is to free more RAM on desk, or use a host with more
|
||||
available memory, then retry the cached release build with a larger bounded
|
||||
allowance. Starting with at least 3 GiB available RAM provides more headroom but
|
||||
does not establish the required peak; measure it during the retry. Recheck disk
|
||||
before bundling. Existing debug-build and smoke-test results above still stand.
|
||||
|
||||
### Release package validation: 2026-10-15
|
||||
|
||||
After desk returned with more headroom, a fresh resource check found 4,956,172 KiB
|
||||
available RAM (about 4.73 GiB), nearly all 4 GiB swap free, and 47 GiB free disk.
|
||||
No finite inherited user-cgroup memory limit was found. The cached release build
|
||||
was retried with one job, a temporary 3.5 GiB memory cap, and no build-group swap.
|
||||
It completed successfully in 12 minutes 32 seconds, with 3.5 GiB peak group memory
|
||||
and no OOM event. The earlier failure establishes only that the chosen 1,600 MiB
|
||||
cap was insufficient; it does not establish that the 8 GB VM cannot build.
|
||||
|
||||
The initial Debian bundle declared only GTK and WebKitGTK. Added
|
||||
`src-tauri/tauri.linux.conf.json` to declare OpenSSL plus the Browser's NSS/NSPR and
|
||||
ALSA dependencies. The release executable requires GLIBC 2.39, so the Debian
|
||||
metadata also declares `libc6 (>= 2.39)`. Tauri retains its default GTK/WebKitGTK
|
||||
dependencies. Recheck symbol requirements when changing the compiler or build host;
|
||||
this floor is evidence from this build, not a permanent portability guarantee.
|
||||
The Debian package was regenerated and its final dependency metadata verified.
|
||||
|
||||
| Release check | Recorded result |
|
||||
| --- | --- |
|
||||
| Normal optimized release profile and Debian bundling | Passed, using locked/offline Cargo dependencies and the previously validated frontend |
|
||||
| Debian package | `RuneStone_0.1.34_amd64.deb`, package name `rune-stone`, version `0.1.34`, architecture `amd64` |
|
||||
| Debian package checksums, desktop entry, resources and permissions | Passed; host and Browser executables are executable, Browser resource directory is traversable, packaged checksums match |
|
||||
| Debian shared libraries on desk | All host and Browser libraries resolve |
|
||||
| Extracted Debian GUI smoke | Host rendered a visible window, launched its own packaged Browser executable, and rendered an HTTPS page |
|
||||
| AppImage bundling | Passed from the same optimized release executable; 2 minutes 18 seconds, about 1.6 GiB peak memory, no build-group swap |
|
||||
| Extracted AppImage GUI smoke | AppRun launched, bundled WebKitGTK child processes were used, its packaged Browser launched, and an HTTPS page rendered |
|
||||
|
||||
Both package tests used isolated task-local settings/data and closed their test
|
||||
processes afterward. AppImage's supported extraction route was used because the
|
||||
VM does not expose `/dev/fuse`; FUSE-mounted execution was not tested. Virtual-GPU
|
||||
acceleration warnings did not prevent rendering. Versions remain 0.1.34 under the
|
||||
explicit validation-build instruction. These are unsigned experimental artifacts,
|
||||
not published releases. Completed package files, metadata, test limits, and
|
||||
checksums are archived under `releases/0.1.34/` outside Git.
|
||||
|
||||
No app was installed system-wide and no existing user workspace/settings were
|
||||
used. Installation, same-version reinstall, upgrade, removal, the full desktop
|
||||
acceptance matrix, Ubuntu 24.04, Wayland, and other architectures remain untested.
|
||||
The Table Formulas external dependency remains absent. Native library resolution
|
||||
on desk and successful extraction smoke checks do not prove clean-machine package
|
||||
installation or compatibility with other distributions.
|
||||
The AppImage's bundled WebKitGTK and JavaScriptCoreGTK libraries require GLIBC
|
||||
2.43. The Debian executable's GLIBC 2.39 floor therefore does not describe the
|
||||
AppImage's minimum runtime. Treat this AppImage as an Ubuntu 26.04 validation
|
||||
artifact rather than a portable Ubuntu 24.04 build.
|
||||
See [development help](development.md#development-help) for port conflicts, stale windows, and offline Cargo errors.
|
||||
|
||||
Reference in New Issue
Block a user