Skip to content

Commit

Permalink
update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
tiziano88 committed Dec 27, 2016
1 parent aa7db5d commit c8c680e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions release
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@

set -x

OUT=elm-protobuf-linux-x86_32
TAG=$(git tag)

OUT=elm-protobuf-${TAG}-linux-x86_32
GOOS=linux GOARCH=386 go build -o ./bin/${OUT}/protoc-gen-elm ./protoc-gen-elm
tar -zcvf ./bin/${OUT}.tar.gz ./bin/${OUT}

OUT=elm-protobuf-linux-x86_64
OUT=elm-protobuf-${TAG}-linux-x86_64
GOOS=linux GOARCH=amd64 go build -o ./bin/${OUT}/protoc-gen-elm ./protoc-gen-elm
tar -zcvf ./bin/${OUT}.tar.gz ./bin/${OUT}

OUT=elm-protobuf-osx-x86_32
OUT=elm-protobuf-${TAG}-osx-x86_32
GOOS=darwin GOARCH=386 go build -o ./bin/${OUT}/protoc-gen-elm ./protoc-gen-elm
tar -zcvf ./bin/${OUT}.tar.gz ./bin/${OUT}

OUT=elm-protobuf-osx-x86_64
OUT=elm-protobuf-${TAG}-osx-x86_64
GOOS=darwin GOARCH=amd64 go build -o ./bin/${OUT}/protoc-gen-elm ./protoc-gen-elm
tar -zcvf ./bin/${OUT}.tar.gz ./bin/${OUT}

0 comments on commit c8c680e

Please sign in to comment.