From 660c4ddd04af71089dbcb32f1c2721252d57bf03 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 21 Dec 2017 14:39:19 +0800 Subject: [PATCH] refactor: add commit id in version for windows. --- .appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 6dcb583..bf67451 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -27,7 +27,7 @@ install: build_script: - ps: | 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 { $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