aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-04-19 20:09:13 -0400
committerSam Anthony <sam@samanthony.xyz>2025-04-19 20:09:13 -0400
commitfc5f053c5844cc614c61f53705cd26189df9de17 (patch)
treefe90ef8850c3ca73cb5ae417c718b72a6d715592
parent10e2bb6b94e562296aea5f6dbc885aa04754d226 (diff)
downloadhose-fc5f053c5844cc614c61f53705cd26189df9de17.zip
release script
-rw-r--r--.gitignore3
-rw-r--r--release.sh21
2 files changed, 23 insertions, 1 deletions
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