From b1e82f8d7f52108235995646ba399e2d35cfd093 Mon Sep 17 00:00:00 2001 From: andreimarcu Date: Wed, 14 Oct 2015 16:31:52 -0400 Subject: [PATCH] Update build.sh to build linx-genkey --- build.sh | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index ced0817..9edffd5 100755 --- a/build.sh +++ b/build.sh @@ -1,8 +1,8 @@ #!/bin/bash version="$1" -mkdir -p "binairies/"$filepath"/""$version" -name="binairies/"$filepath"/""$version""/linx-server-v""$version""_" +mkdir -p "binairies/""$version" +name="binairies/""$version""/linx-server-v""$version""_" GOOS=darwin GOARCH=amd64 go build -o "$name"osx-amd64 rice append --exec "$name"osx-amd64 @@ -37,3 +37,30 @@ rice append --exec "$name"windows-amd64.exe GOOS=windows GOARCH=386 go build -o "$name"windows-386.exe rice append --exec "$name"windows-386.exe + +cd linx-genkey +name="../binairies/""$version""/linx-genkey-v""$version""_" + +GOOS=darwin GOARCH=amd64 go build -o "$name"osx-amd64 + +GOOS=darwin GOARCH=386 go build -o "$name"osx-386 + +GOOS=freebsd GOARCH=amd64 go build -o "$name"freebsd-amd64 + +GOOS=freebsd GOARCH=386 go build -o "$name"freebsd-386 + +GOOS=openbsd GOARCH=amd64 go build -o "$name"openbsd-amd64 + +GOOS=openbsd GOARCH=386 go build -o "$name"openbsd-386 + +GOOS=linux GOARCH=arm go build -o "$name"linux-arm + +GOOS=linux GOARCH=amd64 go build -o "$name"linux-amd64 + +GOOS=linux GOARCH=386 go build -o "$name"linux-386 + +GOOS=windows GOARCH=amd64 go build -o "$name"windows-amd64.exe + +GOOS=windows GOARCH=386 go build -o "$name"windows-386.exe + +cd ..