1.5.1
What's New
-
Dynamic version string: Version is now automatically extracted from git tags (
git describe --tags --dirty). No manual version updates needed — just create a new tag and the UI will reflect it. -
Version display: Version shown in both the tray tooltip and the context menu (e.g., "MonitorSwitcher 1.5.1")
-
Documentation: README and AGENTS guides updated to reflect the new versioning system
Technical Details
- Makefile now defines
VERSIONusinggit describe --tags --dirtywith fallback todevfor builds outside a git repository - Version passed to compiler via
-DVERSION_STRINGflag - The
-dirtysuffix indicates uncommitted changes in the working tree
Version Display Examples
| Build State | UI Display |
|---|---|
| At tag 1.5.1 | MonitorSwitcher 1.5.1 |
| 2 commits after tag | MonitorSwitcher 1.5.1-2-gabcdef1 |
| With uncommitted changes | MonitorSwitcher 1.5.1-dirty |
| No git directory | MonitorSwitcher dev |