diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | release.sh | 21 |
2 files changed, 23 insertions, 1 deletions
@@ -1,3 +1,4 @@ -/hose +hose acme.dump .plan +bin
\ No newline at end of file diff --git a/release.sh b/release.sh new file mode 100644 index 0000000..4de9d38 --- /dev/null +++ b/release.sh @@ -0,0 +1,21 @@ +version=$(git describe --tags) + +gooses=(darwin linux windows) +goarches=(amd64 arm64) + +if [ ! -d bin ]; then + mkdir bin +fi + +for goos in "${gooses[@]}"; do + for goarch in "${goarches[@]}"; do + file="hose_${version}_${goos}_${goarch}" + if [ "$goos" = "windows" ]; then + file="$file.exe" + fi + echo $file + GOOS=$goos GOARCH=$goarch go build -o "bin/$file" + done +done + +echo done |