#!/bin/bash set -e cd "$(dirname "$0")" echo "[$(date +%H:%M:%S)] frontend..." (cd internal/gui/frontend && npm run build 2>&1 | tail -3) echo "[$(date +%H:%M:%S)] go build..." CGO_ENABLED=0 go build -trimpath -tags "desktop,production" \ -ldflags "-s -w -H=windowsgui -X main.Version=99.99.99-test" \ -o drover-test.exe ./cmd/drover echo "[$(date +%H:%M:%S)] OK $(stat -c %s drover-test.exe) bytes"