This repository was archived by the owner on Dec 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,7 +251,13 @@ set( BHL_VERSION_STRING "${BHL_VERSION_MAJOR}.${BHL_VERSION_MINOR}.${BHL_VERSION
251251if ( BHL_VERSION_TAG )
252252 set ( BHL_VERSION_STRING "${BHL_VERSION_STRING} -${BHL_VERSION_TAG} " )
253253endif ()
254- set ( BHL_VERSION_STRING "${BHL_VERSION_STRING} +${GIT_BRANCH} .${GIT_COMMIT_HASH} " )
254+
255+ if ( BHL_FORCE_BRANCH )
256+ set ( BHL_VERSION_STRING "${BHL_VERSION_STRING} +${BHL_FORCE_BRANCH} .${GIT_COMMIT_HASH} " )
257+ else ()
258+ set ( BHL_VERSION_STRING "${BHL_VERSION_STRING} +${GIT_BRANCH} .${GIT_COMMIT_HASH} " )
259+ endif ()
260+
255261if ( GIT_DIRTY )
256262 set ( BHL_VERSION_STRING "${BHL_VERSION_STRING} .m" )
257263endif ()
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ install:
3131 - cmd : git submodule update --init --recursive
3232
3333build_script :
34- - ps : ./scripts/BuildRelease.ps1 -Target $env:TARGET -MakeZip -CMakeArgs "-DBHL_VERSION_METADATA =`"appveyor. ${env:APPVEYOR_REPO_BRANCH}.${env:APPVEYOR_BUILD_NUMBER }`"" -Updater
34+ - ps : ./scripts/BuildRelease.ps1 -Target $env:TARGET -MakeZip -CMakeArgs "-DBHL_FORCE_BRANCH =`"${env:APPVEYOR_REPO_BRANCH}`"" -Updater
3535
3636artifacts :
3737 - path : autobuild/BugfixedHL-*.zip
You can’t perform that action at this time.
0 commit comments