Skip to content

Commit

Permalink
Adds a super basic release building script
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Desrosiers committed Apr 5, 2017
1 parent fe68d7a commit a6e8f4f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
# Builds our release artifacts and puts

cp -r static $TMPDIR

export GOOS GOARCH
for GOOS in linux darwin; do
for GOARCH in amd64 arm; do
echo "Building $GOOS-$GOARCH"
TMPDIR="$(mktemp -d)"

cp -r static $TMPDIR
go build -o $TMPDIR/go-shorten github.com/thomaso-mirodin/go-shorten

tar -cf go-shorten-$GOOS-$GOARCH.tar \
-C $TMPDIR \
go-shorten static

rm -r $TMPDIR
done
done

echo "Release complete"

0 comments on commit a6e8f4f

Please sign in to comment.