all: re-organize build/release
- extract steps into shell files
- fix GoReleaser builds (I hope)
- rely more on the toolchain for version information
- allow non-standard builds, but print a warning
Suggested-by: Marc-Antoine Ruel <maruel@gmail.com>
diff --git a/build/innie.sh b/build/innie.sh
new file mode 100755
index 0000000..b353f42
--- /dev/null
+++ b/build/innie.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -e
+
+CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="${LDFLAGS:-}" -tags=innie -o embedded/sketch-linux/sketch-linux-amd64 ./cmd/sketch
+CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="${LDFLAGS:-}" -tags=innie -o embedded/sketch-linux/sketch-linux-arm64 ./cmd/sketch