Skip to content

Commit

Permalink
Adds LICENSE to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rewanthtammana committed Dec 3, 2019
1 parent d758d39 commit 4c09dd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

VERSION_MAJOR := 1
VERSION_MINOR := 2
VERSION_PATCH := 1
VERSION_PATCH := 2
VERSION_SUFFIX := ""

COMMIT := $(shell git describe --always)
Expand Down Expand Up @@ -30,16 +30,19 @@ dependency:
build-linux:
@echo "Creating Build for Linux..."
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o ./releases/$(VERSION)/Linux-x86_64/kubectl-fields
@cp LICENSE ./releases/$(VERSION)/Linux-x86_64
@tar zcf ./releases/$(VERSION)/kubectl-fields-Linux-x86_64.tar.gz -C releases/$(VERSION)/Linux-x86_64 kubectl-fields

This comment has been minimized.

Copy link
@corneliusweig

corneliusweig Dec 3, 2019

Copying the license into the output folder won't have an effect, if you explicitly specify which files should go into the archive ;)


build-darwin:
@echo "Creating Build for macOS..."
@CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o ./releases/$(VERSION)/Darwin-x86_64/kubectl-fields
@cp LICENSE ./releases/$(VERSION)/Darwin-x86_64
@tar zcf ./releases/$(VERSION)/kubectl-fields-Darwin-x86_64.tar.gz -C releases/$(VERSION)/Darwin-x86_64 kubectl-fields

build-windows:
@echo "Creating Build for Windows..."
@CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o ./releases/$(VERSION)/Windows-x86_64/kubectl-fields.exe
@cp LICENSE ./releases/$(VERSION)/Windows-x86_64
@zip -j ./releases/$(VERSION)/kubectl-fields-Windows-x86_64.zip releases/$(VERSION)/Windows-x86_64/kubectl-fields.exe

build: build-linux build-darwin build-windows
Expand Down

0 comments on commit 4c09dd2

Please sign in to comment.