diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..70fdac4 --- /dev/null +++ b/build.sh @@ -0,0 +1,14 @@ +#!/bin/bash -exu + +function main() { + local version + version="${1}" + + for os in darwin linux; do + GOOS="${os}" GOARCH=amd64 go build -o "faux-${os}-amd64" -ldflags "-X main.version=${version}" . + shasum -a 256 "faux-${os}-amd64" + done + +} + +main "${@:-}"