-
Notifications
You must be signed in to change notification settings - Fork 15
RescueBox Build
See the RescueBox README_EXE for instructions on how to build the backend fastapi server (#1) and the frontend rescuebox-desktop(#2).
rescuebox backend is a pyinstaller spec to build the backend server.
rescuebox frontend is a pyinstaller spec to build the frontend server.
src-tauri builder is used to build windows version. windows build gives the broad steps to setup
build configure is the src-tauri configuration json that defines product name , version , msi installer using wix details , icon information , location of pyinstaller outputs and demo files to package.
main runtime code to unzip models and copy them to destination, run pre-reqs like ollama , postgres and winFsp , then detect Cuda /Cudnn nvidia gpu libraries and add to path , start the postgres , recuebox front and backend.
note: code-sign is done currently with a self signed certificate and windows signtool.exe
## On windows backend.spec and frontend.spec are used to build windows pyinstaller python executable. A single exe and dir is packaged that is used to start the rescuebox frontend and backend server. the src-tauri config automates these steps.
cd src-tauri
cargo tauri build --bundles msi --config tauri.conf.json
if all goes well , pyinstaller build for frontend and backend , code-sign the executables , compile src-tauri main.rs is performed and a RescueBox_3.1.0_x64_en-US.msi is produced in **src-tauri\target\release\bundle\msi**
manually package three zip files :
1 pre-reqs_3.1.zip contains OllamaSetup.exe , postgress.zip postgreSQL-18 with start and stop scripts , winfsp.msi installer
2 ollama_models_3.1.zip contains the ollams\.models zip with the rescuebox models used ( moondream:latest , ibm/granite4.1:3b, gemma3:1b, gemma3:4b)
3 onnx_models_3.1.zip contains onnx / huggingface model files
deepfake_detection
face_detection_recognition
image_embeddings
image_similarity
image_summary
src ( age_and_gender_detection )
text_embeddings
text_summary
whisper-models - download from huggingface
4 the src-tauri output RescueBox_3.1.0_x64_en-US.msi along with these three zip files make up the Rescuebox 3.1 installer.
refer readme that details user install steps. refer screenshots screenshot pdf
mac simple script to install docker, ollama , postgres pre-reqs and start the rescuebox servers.
this UI is different than the production electron based app in RescueBox-Desktop, use it for quick development work to test
AutoUI uses Vite to build the static assets. To build the assets, run:
# /web/rescuebox-autoui
npm run build
or
# /web/rescuebox-autoui
npm run build:watch
The built assets will be in src/rb-api/rb/api/static/index. They are then served by the API static file server.