mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add github build number to title bar for preview
builds
This commit is contained in:
parent
44b5f5acf1
commit
31ca121498
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -41,6 +41,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./venv/scripts/activate
|
./venv/scripts/activate
|
||||||
mypy theater
|
mypy theater
|
||||||
|
|
||||||
|
- name: update build number
|
||||||
|
run: |
|
||||||
|
[IO.File]::WriteAllLines($pwd.path + "\buildnumber", $env:GITHUB_RUN_NUMBER)
|
||||||
|
|
||||||
- name: Build binaries
|
- name: Build binaries
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -11,6 +11,7 @@ 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=[],
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from PySide2.QtGui import QColor, QFont, QPixmap
|
from PySide2.QtGui import QColor, QFont, QPixmap
|
||||||
|
|
||||||
@ -7,6 +8,9 @@ from theater.theatergroundobject import CATEGORY_MAP
|
|||||||
from .liberation_theme import get_theme_icons
|
from .liberation_theme import get_theme_icons
|
||||||
|
|
||||||
VERSION_STRING = "2.2.0-preview"
|
VERSION_STRING = "2.2.0-preview"
|
||||||
|
if Path("buildnumber").exists():
|
||||||
|
with open("buildnumber", "r") as file:
|
||||||
|
VERSION_STRING += f"-{file.readline()}"
|
||||||
|
|
||||||
URLS : Dict[str, str] = {
|
URLS : Dict[str, str] = {
|
||||||
"Manual": "https://github.com/khopa/dcs_liberation/wiki",
|
"Manual": "https://github.com/khopa/dcs_liberation/wiki",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user