Below is the instructions for building executable binaries from source code.
For prerequisites, and how to build for debugging, see docs/run-dev.md.
-
For building executable binaries from Python source code,
PyInstalleris used. -
Activate the Python environment, the
PyInstallershould already installed by follow the instruction at prerequisitescd ./engine conda activate local-genai -
Execute the command:
pyinstaller --onedir --noconsole --contents-directory contents --name agent_server \ --add-data "configs;configs" \ --add-data "models;models" \ --add-data "agents/prompts;agents/prompts" \ server.py
-
The build binaries should be located in a
dist/agent_serverfolder.
-
Running the following command to build both React frontend and Tauri bridge.
cd ./app npm run tauri build -
The build binaries will be located in
src-tauri/target/release.
-
Open the solution in Visual Studio.
-
Select
Releasebuild configuration, you may need to configure the platform compatible with your CPU.-
At Solution Explorer, right-click on
ConsoleAppproject ->Properties -
At roject properties panel, configure at
Build->General->Platform target.
-
-
Run the build,
Build->Rebuild solution. -
By default, the binaries will be at
./bin/Release/net8.0. -
Place the binaries of frontend and backend with all the contents into same working directory. You may have following files:
launcher.exe,agent_server.exe,contents/...,ai-video-analyzer.exe,bundles/...,deps/..., ... -
You can now launch the application with
launcher.exe.