mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +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: |
|
||||
./venv/scripts/activate
|
||||
mypy theater
|
||||
|
||||
- name: update build number
|
||||
run: |
|
||||
[IO.File]::WriteAllLines($pwd.path + "\buildnumber", $env:GITHUB_RUN_NUMBER)
|
||||
|
||||
- name: Build binaries
|
||||
run: |
|
||||
|
||||
@ -11,6 +11,7 @@ analysis = Analysis(
|
||||
('resources', 'resources'),
|
||||
('resources/caucasus.p', 'dcs/terrain/'),
|
||||
('resources/nevada.p', 'dcs/terrain/'),
|
||||
('buildnumber', './')
|
||||
],
|
||||
hookspath=[],
|
||||
runtime_hooks=[],
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user