Skip to content

Commit

Permalink
account for mac when running sha
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Downs <[email protected]>
  • Loading branch information
briandowns committed Nov 1, 2023
1 parent 117c85a commit b0d76f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,15 @@ ARCHS = amd64 arm64
OSs = linux darwin freebsd

GO_COMPILE = CGO_ENABLED=1 $(GO) build -tags $(TAGS) -v -ldflags "$(LDFLAGS)" -o $@-$${os}-$${arch}

OS := $(shell uname)

ifeq ($(OS),Darwin)

endif
ifeq ($(OS),Darwin)
GEN_HASH = shasum -a 256 $@-$${os}-$${arch} >> $(BINDIR)/sha256sums-$(BINARY).txt
else
GEN_HASH = sha256sum $@-$${os}-$${arch} >> $(BINDIR)/sha256sums-$(BINARY).txt
endif

0 comments on commit b0d76f0

Please sign in to comment.