#!/bin/sh # Build the Go panel: refresh the embedded static assets from ../public, # then compile. The resulting binary serves the UI from the embedded copy # unless NG_PUBLIC_DIR points at a directory on disk. set -e cd "$(dirname "$0")" rm -rf embed_public cp -R ../public embed_public CGO_ENABLED=0 go build -trimpath -o nexusgate-panel .