feat: Visual upgrades, Dallas sensor backend, and docs

This commit is contained in:
2026-01-14 14:44:01 +01:00
commit 7a79e48378
11 changed files with 1291 additions and 0 deletions

35
build.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
# Source virtual environment if it exists
if [ -d ".venv" ]; then
source .venv/bin/activate
elif [ -d "venv" ]; then
source venv/bin/activate
fi
# Install dependencies if not already installed
pip install -r requirements.txt
# Run PyInstaller
# --name: Name of the binary
# --onefile: Create a single executable file
# --windowed: No console window (useful for GUI apps)
# --add-data: Include main.qml in the binary
# --clean: Clean cache
# --noconfirm: overwrite existing build directory
echo "Building volvo_display binary..."
pyinstaller --name "volvodisplay" \
--onefile \
--windowed \
--clean \
--noconfirm \
--add-data "main.qml:." \
--add-data "TemperatureGauge.qml:." \
--exclude-module PySide6.QtWebEngineQuick \
--exclude-module PySide6.QtWebEngineCore \
--exclude-module PySide6.QtQuick3DSpatialAudio \
main.py
echo "Build complete. Binary is in 'dist/volvodisplay'"