Tauri desktop shell (reuses web/ frontend, connects to OpenAI-compatible endpoint, isolated in desktop/) (#24)
* Add Tauri desktop shell * Update desktop setup after web UI merge * Declare desktop bundle icons
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# colibrì desktop
|
||||
|
||||
Tauri v2 shell for the shared React interface in `../web`.
|
||||
|
||||
This directory intentionally contains no second frontend. During development,
|
||||
Tauri starts the Vite server from `web/`; release builds package `web/dist`.
|
||||
|
||||
## Development
|
||||
|
||||
The shared web UI landed in PR #23 and is already part of `main`. From the
|
||||
repository root, install its dependencies and start the desktop shell:
|
||||
|
||||
```sh
|
||||
cd web
|
||||
npm ci
|
||||
cd ../desktop
|
||||
cargo install tauri-cli --version "^2.0.0" --locked
|
||||
cargo tauri dev
|
||||
```
|
||||
|
||||
The application connects to an OpenAI-compatible server configured in the UI.
|
||||
Bundling the inference engine or managing its process is intentionally deferred:
|
||||
the model is hundreds of gigabytes and must remain an external, user-selected
|
||||
resource rather than an opaque application sidecar.
|
||||
|
||||
This first desktop increment only packages the existing UI in a native window.
|
||||
It does not change the web application, start the inference engine, download
|
||||
models, or add native filesystem and process permissions.
|
||||
|
||||
## Validation
|
||||
|
||||
```sh
|
||||
cargo fmt --manifest-path src-tauri/Cargo.toml --check
|
||||
cargo check --manifest-path src-tauri/Cargo.toml
|
||||
```
|
||||
Reference in New Issue
Block a user