mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Compare commits
3 Commits
develop_2_
...
2.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2891649531 | ||
|
|
4b40739918 | ||
|
|
e26e7f53c5 |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
|||||||
|
|
||||||
- name: update build number
|
- name: update build number
|
||||||
run: |
|
run: |
|
||||||
[IO.File]::WriteAllLines($pwd.path + "\buildnumber", $env:GITHUB_RUN_NUMBER)
|
[IO.File]::WriteAllLines($pwd.path + "\resources\buildnumber", $env:GITHUB_RUN_NUMBER)
|
||||||
|
|
||||||
- name: Build binaries
|
- name: Build binaries
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
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 resources\final
|
||||||
|
|
||||||
- name: mypy game
|
- name: mypy game
|
||||||
run: |
|
run: |
|
||||||
./venv/scripts/activate
|
./venv/scripts/activate
|
||||||
|
|||||||
@@ -1,8 +1,18 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
def _build_version_string() -> str:
|
||||||
|
components = ["2.2.0"]
|
||||||
|
build_number_path = Path("resources/buildnumber")
|
||||||
|
if build_number_path.exists():
|
||||||
|
with build_number_path.open("r") as build_number_file:
|
||||||
|
components.append(build_number_file.readline())
|
||||||
|
|
||||||
|
if not Path("resources/final").exists():
|
||||||
|
components.append("preview")
|
||||||
|
|
||||||
|
return "-".join(components)
|
||||||
|
|
||||||
|
|
||||||
#: Current version of Liberation.
|
#: Current version of Liberation.
|
||||||
VERSION = "2.2.0"
|
VERSION = _build_version_string()
|
||||||
if Path("buildnumber").exists():
|
|
||||||
with open("buildnumber", "r") as file:
|
|
||||||
VERSION += f"-{file.readline()}"
|
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ analysis = Analysis(
|
|||||||
('resources', 'resources'),
|
('resources', 'resources'),
|
||||||
('resources/caucasus.p', 'dcs/terrain/'),
|
('resources/caucasus.p', 'dcs/terrain/'),
|
||||||
('resources/nevada.p', 'dcs/terrain/'),
|
('resources/nevada.p', 'dcs/terrain/'),
|
||||||
('buildnumber', './')
|
|
||||||
],
|
],
|
||||||
hookspath=[],
|
hookspath=[],
|
||||||
runtime_hooks=[],
|
runtime_hooks=[],
|
||||||
|
|||||||
Reference in New Issue
Block a user