mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-29 21:33:54 +00:00
desktop: make readme more accurate
This commit is contained in:
parent
6af7ddf03b
commit
76b60f3779
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
Native OpenCode desktop app, built with Tauri v2.
|
Native OpenCode desktop app, built with Tauri v2.
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
Building the desktop app requires additional Tauri dependencies (Rust toolchain, platform-specific libraries). See the [Tauri prerequisites](https://v2.tauri.app/start/prerequisites/) for setup instructions.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
From the repo root:
|
From the repo root:
|
||||||
@ -11,22 +15,18 @@ bun install
|
|||||||
bun run --cwd packages/desktop tauri dev
|
bun run --cwd packages/desktop tauri dev
|
||||||
```
|
```
|
||||||
|
|
||||||
This starts the Vite dev server on http://localhost:1420 and opens the native window.
|
|
||||||
|
|
||||||
If you only want the web dev server (no native shell):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
bun run --cwd packages/desktop dev
|
|
||||||
```
|
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
To create a production `dist/` and build the native app bundle:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun run --cwd packages/desktop tauri build
|
bun run --cwd packages/desktop tauri build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Prerequisites
|
## Troubleshooting
|
||||||
|
|
||||||
Running the desktop app requires additional Tauri dependencies (Rust toolchain, platform-specific libraries). See the [Tauri prerequisites](https://v2.tauri.app/start/prerequisites/) for setup instructions.
|
### Rust compiler not found
|
||||||
|
|
||||||
|
If you see errors about Rust not being found, install it via [rustup](https://rustup.rs/):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user