mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-08-23 12:55:45 +08:00
修改脚本
This commit is contained in:
parent
d02ac961f0
commit
c9e5fe6fbf
@ -38,7 +38,7 @@ build_script:
|
|||||||
- if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x64] SET PATH=C:\mingw64\bin;%PATH%
|
- if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x64] SET PATH=C:\mingw64\bin;%PATH%
|
||||||
- set CGO_ENABLED=1
|
- set CGO_ENABLED=1
|
||||||
- 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`'"
|
- 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`'"
|
||||||
- 7z a -t7z -r godoc_windows_%GOARCH%.7z conf/app.conf static/* godoc_windows_%GOARCH%.exe views/* database/* logs/* uploads/*
|
- 7z a -t7z -r godoc_windows_%GOARCH%.7z conf/*.conf* static/* godoc_windows_%GOARCH%.exe views/* database/* logs/* uploads/*
|
||||||
test_script:
|
test_script:
|
||||||
- godoc_windows_%GOARCH%.exe version
|
- godoc_windows_%GOARCH%.exe version
|
||||||
- dir
|
- dir
|
||||||
|
Loading…
Reference in New Issue
Block a user