SwapStation_Dashboard/core
Kirubakaran 68f6de695f feat(versioning): centralize dashboard version management
- Added VERSION.txt at project root to serve as the single source of truth
- Added core/versioning.py with get_version() helper:
  • Reads APP_VERSION env var if present
  • Reads VERSION.txt (works in dev and frozen exe)
  • Falls back to "v0.0.0"
- Updated main_window.py:
  • Import get_version() and store self.app_version
  • Set window title dynamically with dashboard version
  • Replaced hardcoded QLabel("Version 4.2") with QLabel(f"Version {get_version()}")
- Updated build script (generate_executable.py):
  • Prompt for version at build time
  • Write VERSION.txt with entered version
  • Bundle VERSION.txt into PyInstaller exe (--add-data)
  • Use version in exe filename (SwapStationDashboard_vX.Y.exe)
- Result: version number now changes automatically everywhere (badge, title, About, logs)
  just by editing VERSION.txt or providing APP_VERSION at build/runtime.
2025-08-27 20:16:02 +05:30
..
__init__.py chore: initial project setup 2025-08-21 00:26:09 +05:30
csv_logger.py fix: Bugs & UI 2025-08-27 17:36:12 +05:30
mqtt_client.py feat(versioning): centralize dashboard version management 2025-08-27 20:16:02 +05:30
versioning.py feat(versioning): centralize dashboard version management 2025-08-27 20:16:02 +05:30