Skip to content

Commit

Permalink
Add Linux ARM build
Browse files Browse the repository at this point in the history
Adds Linux ARM to build script.
  • Loading branch information
judsonmitchell committed Oct 24, 2015
1 parent 711f6a7 commit 1af0e2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ echo "Version is $VERSION"
WINDIR="devd-$VERSION-windows64"
LINUXDIR="devd-$VERSION-linux64"
DARWINDIR="devd-$VERSION-osx64"
rm -fr ./tmp/$WINDIR* ./tmp/$LINUXDIR* ./tmp/$DARWINDIR*
ARMDIR="devd-$VERSION-linux-arm"

rm -fr ./tmp/$WINDIR* ./tmp/$LINUXDIR* ./tmp/$DARWINDIR* ./tmp/$ARMDIR*

echo "Building..."

Expand All @@ -31,6 +33,10 @@ echo $WINDIR
mkdir -p ./tmp/$WINDIR
env GOOS=windows GOARCH=amd64 go build -o ./tmp/$WINDIR/devd.exe

echo $ARMDIR
mkdir -p ./tmp/$ARMDIR
env GOOS=linux GOARCH=arm go build -o ./tmp/$ARMDIR/devd

echo "Removing static inclusions..."
find . -name "*.rice-box.go" -print0 | xargs -0 rm
find . -name "rice-box.go" -print0 | xargs -0 rm
Expand All @@ -39,4 +45,5 @@ echo "Creating packages"
cd tmp
tar -czvf $DARWINDIR.tgz $DARWINDIR
tar -czvf $LINUXDIR.tgz $LINUXDIR
tar -czvf $ARMDIR.tgz $ARMDIR
zip -r "$WINDIR.zip" $WINDIR

0 comments on commit 1af0e2b

Please sign in to comment.