From fc5f053c5844cc614c61f53705cd26189df9de17 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 19 Apr 2025 20:09:13 -0400 Subject: release script --- .gitignore | 3 ++- release.sh | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 release.sh diff --git a/.gitignore b/.gitignore index 3b96afd..6eb3a66 100644 --- a/.gitignore +++ b/.gitignore @@ -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 -- cgit v1.2.3