Skip to content

Commit

Permalink
Update Makefile to support M1 (#75)
Browse files Browse the repository at this point in the history
pre-build binary support darwin-arm64
  • Loading branch information
wisecsj authored Dec 17, 2021
1 parent 57ecaa8 commit da557ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/zu1k/nali/inte
-w -s'

PLATFORM_LIST = \
darwin-arm64 \
darwin-amd64 \
linux-386 \
linux-amd64 \
Expand All @@ -32,6 +33,9 @@ all: linux-amd64 darwin-amd64 windows-amd64 # Most used
docker:
$(GOBUILD) -o $(BINDIR)/$(NAME)-$@

darwin-arm64:
GOARCH=arm64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@

darwin-amd64:
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@

Expand Down

0 comments on commit da557ed

Please sign in to comment.