diff --git a/.gitignore b/.gitignore index 9aeb112..7cff4e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ vendor/ *.exe +/.release/ diff --git a/release.sh b/release.sh new file mode 100644 index 0000000..7761f7d --- /dev/null +++ b/release.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if ! [ -x "$(command -v gox)" ]; then + echo 'gox not found, please install it: https://github.com/mitchellh/gox' + exit 1 +fi + +mkdir -p .release +rm -r .release/* +gox -os="linux darwin windows openbsd" -arch="386 amd64 arm arm64" -output=".release/{{.Dir}}_{{.OS}}_{{.Arch}}"