From 95e648598f441ec5f0563ba3be136c7ab71c94bd Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Tue, 3 Jan 2023 19:32:02 -0500 Subject: Build the UI on each call of the build.sh script. --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index 8fad3bd..8ae273f 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,6 @@ #!/bin/sh set -e +set -x LICENSE="$(cat LICENSE)" @@ -15,6 +16,10 @@ if ! git diff-index --quiet HEAD ; then version="dirty: $version" fi +cd ui +npm run build +cd .. + export CGO_ENABLED=0 go build -ldflags="-X 'main.Version=$version'" . -- cgit v1.2.3