refactor: add commit id in version for windows.
This commit is contained in:
parent
6a15a1fd58
commit
660c4ddd04
@ -27,7 +27,7 @@ install:
|
|||||||
build_script:
|
build_script:
|
||||||
- ps: |
|
- ps: |
|
||||||
if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) {
|
if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) {
|
||||||
go build -ldflags "-X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe
|
go build -ldflags "-X main.Version=$env:APPVEYOR_REPO_COMMIT -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe
|
||||||
} else {
|
} else {
|
||||||
$version = $env:APPVEYOR_REPO_TAG_NAME
|
$version = $env:APPVEYOR_REPO_TAG_NAME
|
||||||
go build -ldflags "-X main.Version=$version -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe
|
go build -ldflags "-X main.Version=$version -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe
|
||||||
|
Loading…
Reference in New Issue
Block a user