Tauri 2 shell: verified Linux build and native window

This commit is contained in:
Emil
2026-11-01 01:10:46 +03:00
parent ebdeca3b92
commit 4f4ee05a3a
5 changed files with 43 additions and 32 deletions
+9 -6
View File
@@ -1,6 +1,6 @@
# ZHILA · Tauri shell
This is the desktop shell for the P0 surface. It is scaffolded and **not yet built** on the development machine: the GTK/WebKit/dbus development packages are missing and `sudo` requires a password.
This is the desktop shell for the ZHILA surface. It is **built and verified** on Fedora (WebKitGTK 2.54.2, GTK 3.24.52, dbus 1.16.2, Tauri 2.12.5 / CLI 2.12.4). The binary is `src-tauri/target/release/zhila-app`.
The shell expects the Vite surface at `http://127.0.0.1:5173` (the `devUrl` in `src-tauri/tauri.conf.json`) and the Rust daemon at `ws://127.0.0.1:4317`. The P0 window does not embed the engine yet.
@@ -36,11 +36,14 @@ npm --prefix app run tauri build -- --bundles deb
The bundle targets are `deb` and `appimage`. The icon at `src-tauri/icons/icon.png` is a P0 placeholder.
## Observed failure before the system packages
## Verified build
```
Package 'dbus-1' was not found in the pkg-config search path.
The system library `dbus-1` required by crate `libdbus-sys` was not found.
```bash
npm --prefix ui run build
cd app
./node_modules/.bin/tauri build --no-bundle
# with the daemon running:
./src-tauri/target/release/zhila-app
```
`pkg-config` also reports missing `webkit2gtk-4.1` and `gtk+-3.0`. The exact `cargo check` output is in `docs/P0.md`.
`cargo check --manifest-path app/src-tauri/Cargo.toml` and the release build pass. The earlier `dbus-1`/`webkit2gtk`/`gtk` pkg-config failure is historical; those packages are installed. The window screenshot is `preview-tauri.png` at the repository root.