mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix versioning for release builds.
This commit is contained in:
parent
85f931316a
commit
9019cbfd2b
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -29,6 +29,10 @@ jobs:
|
|||||||
# For some reason the shiboken2.abi3.dll is not found properly, so I copy it instead
|
# For some reason the shiboken2.abi3.dll is not found properly, so I copy it instead
|
||||||
Copy-Item .\venv\Lib\site-packages\shiboken2\shiboken2.abi3.dll .\venv\Lib\site-packages\PySide2\ -Force
|
Copy-Item .\venv\Lib\site-packages\shiboken2\shiboken2.abi3.dll .\venv\Lib\site-packages\PySide2\ -Force
|
||||||
|
|
||||||
|
- name: Finalize version
|
||||||
|
run: |
|
||||||
|
New-Item -ItemType file final
|
||||||
|
|
||||||
- name: mypy game
|
- name: mypy game
|
||||||
run: |
|
run: |
|
||||||
./venv/scripts/activate
|
./venv/scripts/activate
|
||||||
|
|||||||
@ -1,8 +1,17 @@
|
|||||||
from pathlib import Path
|
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.
|
#: Current version of Liberation.
|
||||||
VERSION = "2.3.0-preview"
|
VERSION = _build_version_string()
|
||||||
if Path("buildnumber").exists():
|
|
||||||
with open("buildnumber", "r") as file:
|
|
||||||
VERSION += f"-{file.readline()}"
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user