Skip to content

Commit

Permalink
v2.
Browse files Browse the repository at this point in the history
Don't make 32bit binaries.
  • Loading branch information
sofar committed Jan 1, 2018
1 parent 780f1c5 commit ce13cbd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PREFIX ?= /usr/local
DIST := COPYING Makefile mtmediasrv.service mtmediasrv.yaml nginx-server.conf readme.md

PROJECT := mtmediasrv
VERSION = 1
VERSION = 2
BUILD = `git describe --tags --always`

$(PROJECT): main.go
Expand All @@ -24,8 +24,6 @@ dist:
rm -rf $(PROJECT)-$(BUILD)
mkdir $(PROJECT)-$(BUILD)
cp $(DIST) $(PROJECT)-$(BUILD)/
GOOS=linux GOARCH=386 go build -ldflags "-X main.Version=$(VERSION) -X main.Build=$(BUILD)" -o $(PROJECT) -o $(PROJECT)-$(BUILD)/$(PROJECT)
zip -r $(PROJECT)-$(BUILD)-ia32.zip $(PROJECT)-$(BUILD)/
rm -f $(PROJECT)-$(BUILD)/$(PROJECT)
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.Version=$(VERSION) -X main.Build=$(BUILD)" -o $(PROJECT) -o $(PROJECT)-$(BUILD)/$(PROJECT)
zip -r $(PROJECT)-$(BUILD)-x86_64.zip $(PROJECT)-$(BUILD)/
Expand Down

0 comments on commit ce13cbd

Please sign in to comment.