From 0fdfd3e69beda78d491d10015ee79c0c9020570f Mon Sep 17 00:00:00 2001 From: Minho Date: Tue, 6 Jun 2017 09:17:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appveyor.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index d86d21f6..55ce1005 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -41,7 +41,9 @@ build_script: - if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x64] SET PATH=C:\mingw64\bin;%PATH% - set CGO_ENABLED=1 - glide update - - go build -v -o "godoc_windows_%GOARCH%.exe" -ldflags="-w -X github.com/lifei6671/godoc/conf.VERSION=%APPVEYOR_REPO_TAG_NAME% -X 'github.com/lifei6671/godoc/conf.BUILD_TIME=`date`' -X 'conf.GO_VERSION=`github.com/lifei6671/godoc/go version`'" + - set Build_Time=%date% %time% + - for /f "delims=" %i in ('go version') do (set GO_VERSION=%i) + - go build -v -o "godoc_windows_%GOARCH%.exe" -ldflags="-w -X github.com/lifei6671/godoc/conf.VERSION=%APPVEYOR_REPO_TAG_NAME% -X 'github.com/lifei6671/godoc/conf.BUILD_TIME=%Build_Time%' -X 'conf.GO_VERSION=%GO_VERSION%'" - 7z a -t7z -r godoc_windows_%GOARCH%.7z conf/*.conf* static/* godoc_windows_%GOARCH%.exe views/* uploads/* test_script: - godoc_windows_%GOARCH%.exe version