aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2023-01-03 19:32:02 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2023-01-03 19:32:02 -0500
commit95e648598f441ec5f0563ba3be136c7ab71c94bd (patch)
tree58c7964a0c028d30eae370f19260f3d2df279909
parent5ee149d5279408c0a0ee3e7e91e88241b2fb17ff (diff)
downloadpaste-95e648598f441ec5f0563ba3be136c7ab71c94bd.tar.gz
paste-95e648598f441ec5f0563ba3be136c7ab71c94bd.tar.xz
Build the UI on each call of the build.sh script.
-rwxr-xr-xbuild.sh5
1 files changed, 5 insertions, 0 deletions
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'" .