Skip to content

Commit

Permalink
Remove the package zip file before building
Browse files Browse the repository at this point in the history
  • Loading branch information
xitonix committed Jul 26, 2019
1 parent c46ad4b commit 1f18901
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ EXECUTABLE=trubka
WINDOWS=./bin/windows_amd64
LINUX=./bin/linux_amd64
DARWIN=./bin/darwin_amd64
VERSION=$(shell git describe --tags --always --long)
VERSION=$(shell git describe --tags --abbrev=0)

windows:
env GOOS=windows GOARCH=amd64 go build -i -v -o $(WINDOWS)/$(EXECUTABLE).exe -ldflags="-s -w -X main.version=$(VERSION)" *.go
Expand All @@ -17,6 +17,7 @@ build: windows linux darwin ## Build binaries
@echo version: $(VERSION)

package:
rm -f ./bin/binaries.zip
zip -v -r ./bin/binaries.zip ./bin/*

all: build package clean
Expand Down

0 comments on commit 1f18901

Please sign in to comment.