From a369b05ee4e03eda895f1e05e5bec20706381a16 Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Wed, 9 Aug 2023 12:00:50 -0700 Subject: [PATCH] Build darwin-arm64 build during `make dist-macos` (#500) --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index e3d75e4c..8ea446fc 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,11 @@ endif mv dist/litestream.zip dist/litestream-${LITESTREAM_VERSION}-darwin-amd64.zip openssl dgst -sha256 dist/litestream-${LITESTREAM_VERSION}-darwin-amd64.zip + GOOS=darwin GOARCH=arm64 CC="gcc -target arm64-apple-macos11" CGO_ENABLED=1 go build -v -ldflags "-s -w -X 'main.Version=${LITESTREAM_VERSION}'" -o dist/litestream ./cmd/litestream + gon etc/gon.hcl + mv dist/litestream.zip dist/litestream-${LITESTREAM_VERSION}-darwin-arm64.zip + openssl dgst -sha256 dist/litestream-${LITESTREAM_VERSION}-darwin-arm64.zip + clean: rm -rf dist