aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-04-02 21:59:36 +0200
committerToni Uhlig <matzeton@googlemail.com>2024-02-02 11:51:32 +0100
commit6360f3edd2a30aadfd197f8caaa6682979643ad6 (patch)
tree32c76d93efdc357d170abc33e997109c96fea3e9
parent83816c2d44c2001eafbb9b118042ba46096c5d00 (diff)
force buildscript to use go-1.14 for generate/format
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rwxr-xr-xbuild.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 4bf8771c..967d09e7 100755
--- a/build.sh
+++ b/build.sh
@@ -1,4 +1,15 @@
#!/usr/bin/env sh
+GOBIN=go-1.14.1
cd "$(dirname ${0})"
-go-1.14.1 build -ldflags='-s -w' -tags='sqlite pam'
+
+${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'