Files
kgpz_web/scripts/build.sh
Simon Martens d109f7a040 Added github webhooks to relaod on change
TODO: Reset cache on change
2025-02-17 17:00:20 +01:00

14 lines
265 B
Bash
Executable File

#!/bin/bash
rm -rf ./bin
npm --prefix ./views install
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