Skip to content

Commit

Permalink
strip v from git tag when parsing version
Browse files Browse the repository at this point in the history
  • Loading branch information
btoews committed May 2, 2019
1 parent 7b80edd commit 925ba02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ install:
before_build:
# Figure out version numbers
- git describe --tags > version
- set /p GIT_VERSION= < version
- FOR /F "delims=.- tokens=1" %%G IN (version) DO set VERSION_MAJOR=%%G
- FOR /F "delims=.- tokens=2" %%G IN (version) DO set VERSION_MINOR=%%G
- FOR /F "delims=.- tokens=3" %%G IN (version) DO set VERSION_PATCH=%%G
- FOR /F "delims=v tokens=1" %%G IN (version) DO set GIT_VERSION=%%G
- FOR /F "delims=v.- tokens=1" %%G IN (version) DO set VERSION_MAJOR=%%G
- FOR /F "delims=v.- tokens=2" %%G IN (version) DO set VERSION_MINOR=%%G
- FOR /F "delims=v.- tokens=3" %%G IN (version) DO set VERSION_PATCH=%%G
# Generate resource.syso
- go generate

Expand Down

0 comments on commit 925ba02

Please sign in to comment.