From 70069e4e23a5155c77f57559d946ba9238f0ef19 Mon Sep 17 00:00:00 2001 From: caleb mccarthy Date: Sat, 5 Dec 2020 15:26:57 -0600 Subject: [PATCH] Add arm64 v7 option --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 8bd9cbd..f100b3f 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,11 @@ release: clean assets -ldflags "-s -w -X github.com/sosedoff/pgweb/pkg/command.GitCommit=$(GIT_COMMIT) -X github.com/sosedoff/pgweb/pkg/command.BuildTime=$(BUILD_TIME) -X github.com/sosedoff/pgweb/pkg/command.GoVersion=$(GO_VERSION)" \ -o "./bin/pgweb_linux_arm_v5" + @echo "Building ARM64 binaries..." + GOOS=linux GOARCH=arm64 GOARM=7 go build \ + -ldflags "-s -w -X github.com/sosedoff/pgweb/pkg/command.GitCommit=$(GIT_COMMIT) -X github.com/sosedoff/pgweb/pkg/command.BuildTime=$(BUILD_TIME) -X github.com/sosedoff/pgweb/pkg/command.GoVersion=$(GO_VERSION)" \ + -o "./bin/pgweb_linux_arm64_v7" + @echo "\nPackaging binaries...\n" @./script/package.sh