Skip to content

Commit 782c399

Browse files
committed
Added script to generate release artifacts.
1 parent 8905929 commit 782c399

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

release.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
RELEASE=$1
6+
if [[ "$RELEASE" == "" ]]; then
7+
echo "Usage: $0 <release>"
8+
exit 1
9+
fi
10+
11+
OS=("darwin" "linux")
12+
ARCH=("386" "amd64")
13+
14+
for os in "${OS[@]}"; do
15+
for arch in "${ARCH[@]}"; do
16+
echo -n "Build $os $arch "
17+
GOOS=$os GOARCH=$arch go build
18+
zip tmux-compose-$RELEASE-$os-$arch.zip tmux-compose
19+
rm tmux-compose
20+
done
21+
done

0 commit comments

Comments
 (0)