docs: update readme with more info about building from source

We had previously omitted the information about building the SoulverWrapper, as it was done in build.rs. Now that it has been removed, this commit adds it back.

Fixes #5
This commit is contained in:
ByteAtATime 2025-07-14 09:19:26 -07:00
parent dbec9fcde5
commit baea7dc6f3
No known key found for this signature in database

View file

@ -105,9 +105,18 @@ If you prefer to build the project from its source code, you'll need to set up t
pnpm --filter sidecar build
```
4. **Run in development mode:**
This command will launch the Tauri application with hot-reloading for the frontend.
4. **Compile SoulverCore Wrapper:**
This step compiles the wrapper around SoulverCore into a shared object file.
```bash
swift build -c release --package-path src-tauri/SoulverWrapper
```
5. **Run in development mode:**
This command will launch the Tauri application with hot-reloading for the frontend. Note that you may need to tweak `LD_LIBRARY_PATH` to point to the SoulverWrapper.
```bash
export LD_LIBRARY_PATH="$(pwd)/src-tauri/SoulverWrapper/Vendor/SoulverCore-linux:$(pwd)/src-tauri/SoulverWrapper/.build/release"
pnpm tauri dev
```