Skip to content
This repository was archived by the owner on Dec 24, 2023. It is now read-only.

Commit e293fe0

Browse files
committed
AppVeyor: Fix incorrect branch in version string
1 parent fccc666 commit e293fe0

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,13 @@ set( BHL_VERSION_STRING "${BHL_VERSION_MAJOR}.${BHL_VERSION_MINOR}.${BHL_VERSION
251251
if( BHL_VERSION_TAG )
252252
set( BHL_VERSION_STRING "${BHL_VERSION_STRING}-${BHL_VERSION_TAG}" )
253253
endif()
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+
255261
if( GIT_DIRTY )
256262
set( BHL_VERSION_STRING "${BHL_VERSION_STRING}.m" )
257263
endif()

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ install:
3131
- cmd: git submodule update --init --recursive
3232

3333
build_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

3636
artifacts:
3737
- path: autobuild/BugfixedHL-*.zip

0 commit comments

Comments
 (0)