feat: Better indicate release and development versions via version suffix (#1850)

* Add codename to version string and to bootloader title.

* Use EDGETX_VERSION_SUFFIX instead of CODENAME

* use "dev" instead of "merge" and "custom" instead of "SB".
Changed to lower case for "nightly" and "release".

* Show TEST BUILD warning screen for all non release builds.

* Improved logic

* Removed TEST_BUILD_WARNING, reverted to "merge" and changed to "selfbuild".
This commit is contained in:
Peter Feerick
2022-04-24 14:26:56 +10:00
parent f5b1b53294
commit 2a3fc748bb
6 changed files with 28 additions and 32 deletions
+10
View File
@@ -48,6 +48,16 @@ fi
: ${SRCDIR:=$(dirname "$(pwd)/$0")/..}
gh_tag=${GITHUB_REF##*/}
gh_branch=$(git rev-parse --abbrev-ref HEAD)
if [[ -z $gh_tag ]];
then
export EDGETX_VERSION_SUFFIX=$gh_branch
else
export EDGETX_VERSION_SUFFIX=$gh_tag
fi
: ${BUILD_TYPE:=Release}
: ${COMMON_OPTIONS:="-DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_RULE_MESSAGES=OFF -Wno-dev "}
: ${EXTRA_OPTIONS:="$EXTRA_OPTIONS"}