Добавлена модалка «О проекте», версия 0.1.2; Jenkins берёт VERSION из коммита.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-1
@@ -26,8 +26,8 @@ def _read_version_file(path: Path) -> str | None:
|
||||
@lru_cache
|
||||
def get_app_version() -> str:
|
||||
for path in (
|
||||
_VERSION_FILE,
|
||||
Path("/app/VERSION"),
|
||||
_VERSION_FILE,
|
||||
Path.cwd() / "VERSION",
|
||||
):
|
||||
found = _read_version_file(path)
|
||||
@@ -45,6 +45,7 @@ def get_app_version() -> str:
|
||||
|
||||
|
||||
def get_app_version_label() -> str:
|
||||
clear_version_cache()
|
||||
return f"v{get_app_version()}"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user