Browse Source

Only compressed files in releases

Vova Tkach 5 years ago
parent
commit
7c7b378dde
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Makefile

+ 3 - 0
Makefile

@@ -22,6 +22,9 @@ build: clean version template dockerfile
 	CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -mod vendor -a -o ./bin/fave.darwin-amd64 -ldflags='-X main.Version=$(VERSION) -extldflags "-static"'
 	CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -mod vendor -a -o ./bin/fave.windows-amd64.exe -ldflags='-X main.Version=$(VERSION) -extldflags "-static"'
 	cd ./bin && find . -name 'fave*' | xargs -I{} tar czf {}.tar.gz {}
+	@-rm ./bin/fave.linux-amd64
+	@-rm ./bin/fave.darwin-amd64
+	@-rm ./bin/fave.windows-amd64.exe
 	@cp -R ./hosts/localhost ./bin/localhost
 	@-find ./bin/localhost -type f -name '.*' -exec rm -f {} \;
 	@-rm -R ./bin/localhost/htdocs/products