added build script + proper differentiation of dev & prod builds

This commit is contained in:
Simon Martens
2024-12-04 18:56:44 +01:00
parent 3af43b33dd
commit caa5504f2a
11 changed files with 83 additions and 668 deletions

12
build.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
rm -rf ./bin
npm --prefix ./views run build -- --config vite.config.js
mkdir -p ./bin
go build -o ./bin/kgpz .
if [ -f ./config.json ]; then
cp ./config.json bin/config.json
else
cp ./config.dev.json ./bin/config.json
fi