aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 967d09e71861c27249b3e487a66d22ef6492abbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env sh

GOBIN=go-1.14.1
cd "$(dirname ${0})"

${GOBIN} generate internal/assets/conf/conf.go
${GOBIN} fmt internal/assets/conf/conf_gen.go

${GOBIN} generate internal/assets/templates/templates.go
${GOBIN} fmt internal/assets/templates/templates_gen.go

${GOBIN} generate internal/assets/public/public.go
${GOBIN} fmt internal/assets/public/public_gen.go

${GOBIN} build -ldflags='-s -w' -tags='sqlite pam'