pull/51/head
lifei6671 2017-05-30 20:56:58 +08:00
parent 361bc55c35
commit d0aa2c2a64
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ install:
}
- ps: if($env:tbs_tools -eq 'mingw' -and $env:tbs_arch -eq 'x86')
{
Start-FileDownload "http://libgd.blob.core.windows.net/mingw/i686-4.9.1-release-posix-seh-rt_v3-rev1.7z";
Start-FileDownload "http://libgd.blob.core.windows.net/mingw/i686-4.9.1-release-posix-dwarf-rt_v3-rev1.7z";
7z x -oC:\ x86_64-4.9.1-release-posix-seh-rt_v3-rev1.7z | out-null;
}
- set GO_ENABLED=1
@ -42,7 +42,7 @@ install:
build_script:
- if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x86] SET PATH=C:\mingw32\bin;%PATH%
- if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x64] SET PATH=C:\mingw64\bin;%PATH%
if [%tbs_arch%]==[x86] SET GOARCH=386
- if [%tbs_arch%]==[x86] SET GOARCH=386
- 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`'"
test_script: