Add github build number to title bar for preview

builds
This commit is contained in:
walterroach 2020-10-31 20:19:52 -05:00 committed by Dan Albert
parent 44b5f5acf1
commit 31ca121498
3 changed files with 9 additions and 0 deletions

View File

@ -41,6 +41,10 @@ jobs:
run: |
./venv/scripts/activate
mypy theater
- name: update build number
run: |
[IO.File]::WriteAllLines($pwd.path + "\buildnumber", $env:GITHUB_RUN_NUMBER)
- name: Build binaries
run: |

View File

@ -11,6 +11,7 @@ analysis = Analysis(
('resources', 'resources'),
('resources/caucasus.p', 'dcs/terrain/'),
('resources/nevada.p', 'dcs/terrain/'),
('buildnumber', './')
],
hookspath=[],
runtime_hooks=[],

View File

@ -1,5 +1,6 @@
import os
from typing import Dict
from pathlib import Path
from PySide2.QtGui import QColor, QFont, QPixmap
@ -7,6 +8,9 @@ from theater.theatergroundobject import CATEGORY_MAP
from .liberation_theme import get_theme_icons
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] = {
"Manual": "https://github.com/khopa/dcs_liberation/wiki",