mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
18 lines
397 B
Python
18 lines
397 B
Python
from pathlib import Path
|
|
|
|
|
|
def _build_version_string() -> str:
|
|
components = ["2.3.0"]
|
|
if Path("buildnumber").exists():
|
|
with open("buildnumber", "r") as file:
|
|
components.append(file.readline())
|
|
|
|
if not Path("final").exists():
|
|
components.append("preview")
|
|
|
|
return "-".join(components)
|
|
|
|
|
|
#: Current version of Liberation.
|
|
VERSION = _build_version_string()
|