From ca2f0706d96844e27f7819d33b1cfcd5d17be1a6 Mon Sep 17 00:00:00 2001 From: CrazyWolf13 Date: Tue, 10 Feb 2026 10:44:21 +0100 Subject: [PATCH] add: overwriteable app version var --- misc/build.func | 1 + misc/tools.func | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/build.func b/misc/build.func index 243869534..1907f76ea 100644 --- a/misc/build.func +++ b/misc/build.func @@ -3486,6 +3486,7 @@ build_container() { export PCT_DISK_SIZE="$DISK_SIZE" export IPV6_METHOD="$IPV6_METHOD" export ENABLE_GPU="$ENABLE_GPU" + export APPLICATION_VERSION="${var_appversion:-}" # DEV_MODE exports (optional, for debugging) export BUILD_LOG="$BUILD_LOG" diff --git a/misc/tools.func b/misc/tools.func index 0e53ce594..e3957bff4 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -1890,7 +1890,7 @@ function fetch_and_deploy_codeberg_release() { local app="$1" local repo="$2" local mode="${3:-tarball}" # tarball | binary | prebuild | singlefile | tag - local version="${4:-latest}" + local version="${APPLICATION_VERSION:-${4:-latest}}" local target="${5:-/opt/$app}" local asset_pattern="${6:-}" @@ -2322,7 +2322,7 @@ function fetch_and_deploy_gh_release() { local app="$1" local repo="$2" local mode="${3:-tarball}" # tarball | binary | prebuild | singlefile - local version="${4:-latest}" + local version="${APPLICATION_VERSION:-${4:-latest}}" local target="${5:-/opt/$app}" local asset_pattern="${6:-}"