Skip to content

Commit

Permalink
chore: add release-generating script
Browse files Browse the repository at this point in the history
  • Loading branch information
distek committed Feb 21, 2024
1 parent 75c9d80 commit d234288
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

tag=$(git tag | tail -n1)

platforms=(linux darwin)
arches=(amd64 arm64)

for os in ${platforms[@]}; do
for arch in ${arches[@]}; do
echo "Building: platform=${os} arch=${arch}"
GOOS="${os}" GOARCH="${arch}" go build .
tar cvzf tmux-tools_${os}_${arch}_${tag}.tar.gz tmux-tools
rm tmux-tools
done
done

0 comments on commit d234288

Please sign in to comment.