Skip to content

Commit

Permalink
build for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCech committed Dec 15, 2017
1 parent d57b815 commit b16fe99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.deb
*.swp
/carbon-relay-ng
/carbon-relay-ng.exe
/carbon-relay-ng.ini
/carbon-relay-ng.pid
/carbon-relay-ng.test
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ build:
find . -name '*.go' | grep -v '^\.\/vendor' | xargs gofmt -w -s
CGO_ENABLED=0 go build -ldflags "-X main.Version=$(VERSION)" ./cmd/carbon-relay-ng

build-win:
cd ui/web && go-bindata -pkg web admin_http_assets
find . -name '*.go' | grep -v '^\.\/vendor' | xargs gofmt -w -s
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.Version=$(VERSION)" -o carbon-relay-ng.exe ./cmd/carbon-relay-ng

test:
go test ./...

Expand Down

0 comments on commit b16fe99

Please sign in to comment.