From 8a1870f7d54bcb5f7ed106f2f4b26520c6f9bee5 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 19 Dec 2017 16:59:35 +0800 Subject: [PATCH] fix(appveyor): update version. --- .appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 2f7d36a..7030b6b 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -29,7 +29,7 @@ build_script: if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) { go build -ldflags "-X main.build=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe } else { - $version = $env:APPVEYOR_REPO_TAG_NAME.substring(1) + $version = $env:APPVEYOR_REPO_TAG_NAME go build -ldflags "-X main.Version=$version -X main.build=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe } docker pull microsoft/nanoserver:10.0.14393.1884