Skip to content

Painter (Client) Developer Documentation

This document provides instructions for developers working on the Painter (client) component of RootPainter. For user-facing documentation, please refer to the main project README.md and the docs directory.

Installers for OSX, Windows and Debian based linux distributions are available from the releases page, which is recommended for most users. The instructions below are for building the painter from source.

The server (trainer) must be running for the client to function.

Install dependencies

It is recommended to use a virtual environment. The following commands should be run from within the painter directory.

pip install -r requirements.txt

Windows Build Dependencies

For generating an executable on Windows, ensure that the following are installed and available in your system's PATH:

Running from source

python root_painter/main.py

Building the application

To build the application for your current platform, run:

python scripts/run_pyinstaller.py

The output will be in the dist/ directory.

Building Installers

Installers must be created on the target platform (e.g., a Windows installer must be built on Windows).

Windows (.exe)

makensis scripts/assets/Installer.nsi

macOS (.pkg)

pkgbuild --component dist/RootPainter.app --install-location /Applications dist/RootPainter.pkg

Debian/Ubuntu (.deb)

bash scripts/make_deb_file

The output installer will be located at dist/RootPainter.deb. To install it:

sudo dpkg -i dist/RootPainter.deb