Skip to content

Commit

Permalink
Add build script for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
djfarrelly committed Jun 15, 2017
1 parent 39f4871 commit f046a3a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Clean
echo "Cleaning up"
rm -rf dist >/dev/null 2>&1
mkdir dist >/dev/null 2>&1
rm buffer-static-upload >/dev/null 2>&1

# Build native
echo "Compiling native binary"
go build main.go
mv main buffer-static-upload

# Build linux
echo "Compiling linux binary"
env GOOS=linux GOARCH=amd64 go build main.go
mv main ./dist/buffer-static-upload-Linux

# Build mac
echo "Compiling mac binary"
env GOOS=darwin GOARCH=amd64 go build main.go
mv main ./dist/buffer-static-upload-Darwin

echo "Done!"

0 comments on commit f046a3a

Please sign in to comment.