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:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user