From 12e19c758a1aeb3aed87c6cbc7a1c5e21e33159a Mon Sep 17 00:00:00 2001 From: Minho Date: Tue, 6 Jun 2017 09:19:28 +0800 Subject: [PATCH] * --- appveyor.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 55ce1005..3ac849c5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -41,9 +41,8 @@ build_script: - if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x64] SET PATH=C:\mingw64\bin;%PATH% - set CGO_ENABLED=1 - glide update - - 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%'" + - 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% %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