Skip to content

Commit

Permalink
fixed sed error + deliveries extension is tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Vila committed Jan 31, 2019
1 parent 27e7e0a commit cd2e206
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
VERSION := "3.2.0"
DIST := $(CURDIR)/_dist
LDFLAGS := "-X main.version=${VERSION}"
TAR_LINUX := "helm-spray-linux-amd64.tgz"
TAR_WINDOWS := "helm-spray-windows-amd64.tgz"
TAR_LINUX := "helm-spray-linux-amd64.tar.gz"
TAR_WINDOWS := "helm-spray-windows-amd64.tar.gz"
BINARY_LINUX := "helm-spray"
BINARY_WINDOWS := "helm-spray.exe"

Expand All @@ -14,12 +14,12 @@ dist_linux:
mkdir -p $(DIST)
GOOS=linux GOARCH=amd64 go get -t -v ./...
GOOS=linux GOARCH=amd64 go build -o $(BINARY_LINUX) -ldflags $(LDFLAGS) main.go
sed -e "s/:VERSION:/$VERSION/g" -e "s/:BINARY:/$BINARY_LINUX/g" plugin.yaml.template > plugin.yaml
tar -czvf $(DIST)/${TAR_LINUX} $(BINARY_LINUX) README.md LICENSE plugin.yaml
sed -e "s/:VERSION:/$(VERSION)/g" -e "s/:BINARY:/$(BINARY_LINUX)/g" plugin.yaml.template > plugin.yaml
tar -czvf $(DIST)/$(TAR_LINUX) $(BINARY_LINUX) README.md LICENSE plugin.yaml

.PHONY: dist_windows
dist_windows:
GOOS=windows GOARCH=amd64 go get -t -v ./...
GOOS=windows GOARCH=amd64 go build -o $(BINARY_WINDOWS) -ldflags $(LDFLAGS) main.go
sed -e "s/:VERSION:/$VERSION/g" -e "s/:BINARY:/$BINARY_WINDOWS/g" plugin.yaml.template > plugin.yaml
sed -e "s/:VERSION:/$(VERSION)/g" -e "s/:BINARY:/$(BINARY_WINDOWS)/g" plugin.yaml.template > plugin.yaml
tar -czvf $(DIST)/${TAR_WINDOWS} $(BINARY_WINDOWS) README.md LICENSE plugin.yaml

0 comments on commit cd2e206

Please sign in to comment.