mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 22:29:07 +00:00
2.9 KiB
2.9 KiB
Building
You just want to use the app? Then simply download the appropriate setup for your operating system. This chapter is intended for developers who want to modify and customize the code.
Prerequisites
- Install the .NET 8 SDK.
- Install the Rust compiler in the latest version.
- Met the prerequisites for building Tauri. Node.js is not required, though.
- Install the Tauri CLI by running
cargo install tauri-cli
. - Install NuShell when you want to prepare a release or build a local binary. NuShell works on all operating systems and is required because the build script is written in NuShell.
- Clone the repository.
Build instructions
In order to build MindWork AI Studio from source instead of using the pre-built binaries, follow these steps:
- Ensure you have met all the prerequisites.
- Open a terminal with NuShell.
- Navigate to the
/app/MindWork AI Studio
directory within the repository. - To build the current version, run
nu build.nu publish
.- This will build the app for the current operating system, for both x64 (Intel, AMD) and ARM64 (e.g., Apple Silicon, Raspberry Pi).
- The setup program will be located in
runtime/target/release/bundle
afterward.
- In order to create a new release:
- Before finishing the PR, make sure to create a changelog file in the
/app/MindWork AI Studio/wwwroot/changelog
directory. The file should be namedvX.Y.Z.md
and contain the changes made in the release (your changes and any other changes that are part of the release). - To prepare a new release, run
nu build.nu prepare <ACTION>
, where<ACTION>
is eitherpatch
,minor
, ormajor
. - The actual release will be built by our GitHub Workflow. For this to work, you need to create a PR with your changes.
- Your proposed changes will be reviewed and merged.
- Once the PR is merged, a member of the maintainers team will create & push an appropriate git tag in the format
vX.Y.Z
. - The GitHub Workflow will then build the release and upload it to the release page.
- Building the release including virus scanning takes some time. Please be patient.
- Before finishing the PR, make sure to create a changelog file in the
Run the app locally with all your changes
Do you want to test your changes before creating a PR? Follow these steps:
- Ensure you have met all the prerequisites.
- Open a terminal (in this case, it doesn't have to be NuShell).
- Navigate to the
runtime
directory within the repository, e.g.cd repos/mindwork-ai-studio/runtime
. - 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.