Fix: docker multiplatform build

This commit is contained in:
Dreamacro
2020-06-21 12:38:14 +08:00
parent 18bb285a90
commit 5f3db72422
2 changed files with 6 additions and 2 deletions

View File

@ -29,6 +29,9 @@ WINDOWS_ARCH_LIST = \
all: linux-amd64 darwin-amd64 windows-amd64 # Most used
docker:
$(GOBUILD) -o $(BINDIR)/$(NAME)-$@
darwin-amd64:
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@