Skip to content

Commit

Permalink
add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
aviaryan committed Jul 24, 2017
1 parent c2573b6 commit cdffe3e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@

# executable
/abc
/build
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
# https://golang.org/doc/install/source#environment

VERSION=0.1.0

export GOARCH=amd64

export GOOS=darwin

go build -o "build/abc-${GOOS}-${VERSION}" -tags '!oss' ./cmd/abc/...

export GOOS=windows

go build -o "build/abc-${GOOS}-${VERSION}.exe" -tags '!oss' ./cmd/abc/...

export GOOS=linux

go build -o "build/abc-${GOOS}-${VERSION}" -tags '!oss' ./cmd/abc/...

0 comments on commit cdffe3e

Please sign in to comment.