Added a missed step for local builds

This commit is contained in:
Thorsten Sommer 2024-10-11 07:42:43 +02:00
parent e24e04a843
commit 44f544ea88
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -29,8 +29,9 @@ In order to build MindWork AI Studio from source instead of using the pre-built
## Run the app locally with all your changes ## Run the app locally with all your changes
Do you want to test your changes before creating a PR? Follow these steps: Do you want to test your changes before creating a PR? Follow these steps:
1. Ensure you have met all the prerequisites. 1. Ensure you have met all the prerequisites.
2. Open a terminal (in this case, it doesn't have to be NuShell). 2. At least once, you have to run the `nu build.nu publish` command (see above, "Build instructions"). This is necessary because the Tauri framework checks whether the .NET app as so-called "sidecar" is available. Although the sidecar is only necessary for the final release and shipping, Tauri requires it to be present during development.
3. Navigate to the `runtime` directory within the repository, e.g. `cd repos/mindwork-ai-studio/runtime`. 3. Open a terminal (in this case, it doesn't have to be NuShell).
4. Run `cargo run`. 4. Navigate to the `runtime` directory within the repository, e.g. `cd repos/mindwork-ai-studio/runtime`.
5. Run `cargo run`.
Cargo will compile the Rust code and start the runtime. The runtime will then start the .NET compiler. When the .NET source code is compiled, the app will start. You can now test your changes. Cargo will compile the Rust code and start the runtime. The runtime will then start the .NET compiler. When the .NET source code is compiled, the app will start. You can now test your changes.