2021-05-28 16:19:18 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
build () {
|
|
|
|
pushd ./src &>/dev/null
|
|
|
|
|
2021-09-19 16:45:21 -04:00
|
|
|
go get honnef.co/go/tools/cmd/staticcheck
|
|
|
|
go get github.com/zserge/lorca
|
2021-05-28 16:19:18 -04:00
|
|
|
|
|
|
|
gofmt -w .
|
2021-09-19 16:45:21 -04:00
|
|
|
staticcheck .
|
2021-09-19 18:40:50 -04:00
|
|
|
CGO_ENABLED=1 GOARCH=amd64 go build -o ./kavea_linux_amd64 -v .
|
2021-05-28 16:19:18 -04:00
|
|
|
|
|
|
|
popd &>/dev/null
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$@
|