From ec46adee26d8ce977805263d1e4334d42e16ac7f Mon Sep 17 00:00:00 2001 From: Ryan Moran Date: Wed, 22 May 2019 09:50:23 -0400 Subject: [PATCH] Adds build script --- build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 build.sh 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 "${@:-}"