diff --git a/appveyor.yml b/appveyor.yml index f428ea6b..b47883f0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -49,7 +49,7 @@ build_script: - set CGO_ENABLED=1 - for /f "delims=" %%i in ('go version') do (set GO_VERSION=%%i) - cd c:\gopath\src\github.com\lifei6671\mindoc - - dep ensure -v + - go mod tidy - go build -v -o "mindoc_windows_%GOARCH%.exe" -ldflags="-w -X github.com/lifei6671/mindoc/conf.VERSION=%APPVEYOR_REPO_TAG_NAME% -X 'github.com/lifei6671/mindoc/conf.BUILD_TIME=%date% %time%' -X 'conf.GO_VERSION=%GO_VERSION%'" - 7z a -t7z -r mindoc_windows_%GOARCH%.7z conf/*.conf* static/* mindoc_windows_%GOARCH%.exe views/* uploads/* test_script: @@ -73,4 +73,4 @@ deploy: prerelease: false artifact: mindoc_windows_%GOARCH%.7z on: - appveyor_repo_tag: true \ No newline at end of file + appveyor_repo_tag: true