.goreleaser.yml: use make in GoReleaser

Teach GoReleaser to use make for our nightly releases.

Untested--we'll know better tomorrow whether this works.

Co-Authored-By: sketch <hello@sketch.dev>
Change-ID: s4d8aed2fbf3aae3fk
diff --git a/.goreleaser/build-target.sh b/.goreleaser/build-target.sh
new file mode 100755
index 0000000..37a64dc
--- /dev/null
+++ b/.goreleaser/build-target.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+set -e
+
+# This script is called by GoReleaser for each target
+# GOOS and GOARCH are set by GoReleaser
+# We prepare the embedded assets, then let GoReleaser do the final go build
+
+echo "Preparing embedded assets for GOOS=$GOOS GOARCH=$GOARCH"
+
+# Build webui assets (only once)
+if [ ! -d "embedded/webui-dist" ]; then
+    echo "Building webui assets..."
+    make webui-assets
+fi
+
+# Build innie binaries (only once)
+if [ ! -f "embedded/sketch-linux/sketch-linux-amd64" ] || [ ! -f "embedded/sketch-linux/sketch-linux-arm64" ]; then
+    echo "Building innie binaries..."
+    make innie
+fi
+
+echo "Assets prepared. GoReleaser will now build the outie binary."