1
0
mirror of https://github.com/zu1k/nali.git synced 2025-01-23 05:39:03 +08:00

Update Makefile to support M1 (#75)

pre-build binary support darwin-arm64
This commit is contained in:
wisecsj 2021-12-17 15:41:40 +08:00 committed by GitHub
parent 9f8be105fa
commit 0824abad07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/zu1k/nali/inte
-w -s' -w -s'
PLATFORM_LIST = \ PLATFORM_LIST = \
darwin-arm64 \
darwin-amd64 \ darwin-amd64 \
linux-386 \ linux-386 \
linux-amd64 \ linux-amd64 \
@ -32,6 +33,9 @@ all: linux-amd64 darwin-amd64 windows-amd64 # Most used
docker: docker:
$(GOBUILD) -o $(BINDIR)/$(NAME)-$@ $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
darwin-arm64:
GOARCH=arm64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
darwin-amd64: darwin-amd64:
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@ GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@