mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2026-02-17 14:04:51 +08:00
16 lines
496 B
Bash
16 lines
496 B
Bash
#!/bin/sh
|
|
|
|
go env -w GO111MODULE=on
|
|
go env -w GOPROXY=https://goproxy.cn,direct
|
|
go env -w CGO_ENABLED=1
|
|
go env -w GOOS=linux
|
|
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 cmd/apimain.go
|
|
cp -ar resources release/
|
|
cp -ar docs release/
|
|
cp -ar conf release/
|
|
mkdir release/data
|
|
mkdir release/runtime
|