15 lines
561 B
Batchfile
15 lines
561 B
Batchfile
@echo off
|
|
rmdir /s /q release
|
|
go env -w GO111MODULE=on
|
|
go env -w GOPROXY=https://goproxy.cn,direct
|
|
go env -w CGO_ENABLED=1
|
|
go env -w GOOS=windows
|
|
go env -w GOARCH=amd64
|
|
swag init -g cmd/apimain.go --output docs/api --instanceName api --exclude http/controller/admin
|
|
swag init -g cmd/apimain.go --output docs/admin --instanceName admin --exclude http/controller/api
|
|
go build -o release/apimain.exe cmd/apimain.go
|
|
xcopy resources release\resources /E /I /Y
|
|
xcopy docs release\docs /E /I /Y
|
|
xcopy conf release\conf /E /I /Y
|
|
mkdir release\runtime
|
|
mkdir release\data |