Skip to content

Commit 08d3ea5

Browse files
committed
fix(ui): improve about dialog and runtime version metadata
1 parent d89354a commit 08d3ea5

4 files changed

Lines changed: 414 additions & 90 deletions

File tree

‎build.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@
2222
OUTPUT_NAME = "TranslatorHoi4"
2323
BUILD_META_FILE = PROJECT_ROOT / "translatorhoi4" / "_build_meta.py"
2424

25-
# Get version from environment or git
26-
APP_VERSION = os.environ.get("APP_VERSION", "dev")
25+
# Get version from CI/release environment.
26+
APP_VERSION = (
27+
os.environ.get("APP_VERSION")
28+
or os.environ.get("PACKAGE_VERSION")
29+
or os.environ.get("TRANSLATORHOI4_VERSION")
30+
or "dev"
31+
).removeprefix("v")
2732

2833
# Packages to include (critical dependencies that are fully used)
2934
INCLUDE_PACKAGES = [

0 commit comments

Comments
 (0)