From 1b20c507f3c22db75e816ba82965634f9c5c3afe Mon Sep 17 00:00:00 2001 From: Hidetake Iwata Date: Mon, 23 Mar 2020 15:11:27 +0900 Subject: [PATCH] Add linux_arm64 build (#21) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 48c8afd..c0af1b3 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ VERSION ?= latest GITHUB_USERNAME := int128 GITHUB_REPONAME := slack-docker LDFLAGS := -X main.version=$(VERSION) +OSARCH := linux_arm64 linux_amd64 darwin_amd64 windows_amd64 $(TARGET): go build -o $@ -ldflags "$(LDFLAGS)" @@ -15,7 +16,7 @@ check: .PHONY: dist dist: # make the zip files for GitHub Releases - VERSION=$(VERSION) CGO_ENABLED=0 goxzst -d dist -i "LICENSE" -o "$(TARGET)" -t "$(TARGET).rb" -- -ldflags "$(LDFLAGS)" + VERSION=$(VERSION) CGO_ENABLED=0 goxzst -d dist -i "LICENSE" -o "$(TARGET)" -t "$(TARGET).rb" -osarch "$(OSARCH)" -- -ldflags "$(LDFLAGS)" # test the zip file zipinfo dist/$(TARGET)_linux_amd64.zip