Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 1.91 KB

File metadata and controls

59 lines (36 loc) · 1.91 KB

Instruction for Building Binaries

Below is the instructions for building executable binaries from source code.

For prerequisites, and how to build for debugging, see docs/run-dev.md.

Building Backend

  1. For building executable binaries from Python source code, PyInstaller is used.

  2. Activate the Python environment, the PyInstaller should already installed by follow the instruction at prerequisites

    cd ./engine
    conda activate local-genai
  3. 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
  4. The build binaries should be located in a dist/agent_server folder.

Building Frontend

  1. Running the following command to build both React frontend and Tauri bridge.

    cd ./app
    npm run tauri build
  2. The build binaries will be located in src-tauri/target/release.

Building Launcher

  1. Open the solution in Visual Studio.

  2. Select Release build configuration, you may need to configure the platform compatible with your CPU.

    • At Solution Explorer, right-click on ConsoleApp project -> Properties

    • At roject properties panel, configure at Build -> General -> Platform target.

  3. Run the build, Build -> Rebuild solution.

  4. By default, the binaries will be at ./bin/Release/net8.0.

  5. 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/..., ...

  6. You can now launch the application with launcher.exe.