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

Commit

Permalink
AppVeyor: Fix incorrect branch in version string
Browse files Browse the repository at this point in the history
  • Loading branch information
tmp64 committed Jun 22, 2020
1 parent fccc666 commit e293fe0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,13 @@ set( BHL_VERSION_STRING "${BHL_VERSION_MAJOR}.${BHL_VERSION_MINOR}.${BHL_VERSION
if( BHL_VERSION_TAG )
set( BHL_VERSION_STRING "${BHL_VERSION_STRING}-${BHL_VERSION_TAG}" )
endif()
set( BHL_VERSION_STRING "${BHL_VERSION_STRING}+${GIT_BRANCH}.${GIT_COMMIT_HASH}" )

if( BHL_FORCE_BRANCH )
set( BHL_VERSION_STRING "${BHL_VERSION_STRING}+${BHL_FORCE_BRANCH}.${GIT_COMMIT_HASH}" )
else()
set( BHL_VERSION_STRING "${BHL_VERSION_STRING}+${GIT_BRANCH}.${GIT_COMMIT_HASH}" )
endif()

if( GIT_DIRTY )
set( BHL_VERSION_STRING "${BHL_VERSION_STRING}.m" )
endif()
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ install:
- cmd: git submodule update --init --recursive

build_script:
- ps: ./scripts/BuildRelease.ps1 -Target $env:TARGET -MakeZip -CMakeArgs "-DBHL_VERSION_METADATA=`"appveyor.${env:APPVEYOR_REPO_BRANCH}.${env:APPVEYOR_BUILD_NUMBER}`"" -Updater
- ps: ./scripts/BuildRelease.ps1 -Target $env:TARGET -MakeZip -CMakeArgs "-DBHL_FORCE_BRANCH=`"${env:APPVEYOR_REPO_BRANCH}`"" -Updater

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

0 comments on commit e293fe0

Please sign in to comment.