diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-04-19 20:09:13 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-04-19 20:09:13 -0400 |
| commit | fc5f053c5844cc614c61f53705cd26189df9de17 (patch) | |
| tree | fe90ef8850c3ca73cb5ae417c718b72a6d715592 | |
| parent | 10e2bb6b94e562296aea5f6dbc885aa04754d226 (diff) | |
| download | hose-fc5f053c5844cc614c61f53705cd26189df9de17.zip | |
release script
| -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 |