Go to file
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
assets chore: initial project setup 2025-08-21 00:26:09 +05:30
core feat(versioning): centralize dashboard version management 2025-08-27 20:16:02 +05:30
logo feat: updated the styles 2025-08-27 00:33:05 +05:30
proto chore: initial project setup 2025-08-21 00:26:09 +05:30
ui feat(versioning): centralize dashboard version management 2025-08-27 20:16:02 +05:30
.gitignore Reapply "chore: update gitignore" 2025-08-21 00:37:57 +05:30
VERSION.txt feat(versioning): centralize dashboard version management 2025-08-27 20:16:02 +05:30
generate_exe.py feat(versioning): centralize dashboard version management 2025-08-27 20:16:02 +05:30
main.py chore: initial project setup 2025-08-21 00:26:09 +05:30
requirements.txt chore: initial project setup 2025-08-21 00:26:09 +05:30