From c81010e7abdaf23dc9364c3f78c27d96ceaf788d Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Mon, 23 Oct 2023 15:01:27 -0600 Subject: [PATCH] Fix darwin make target --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8ea446f..3af5758 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,8 @@ ifndef LITESTREAM_VERSION $(error LITESTREAM_VERSION is undefined) endif mkdir -p dist - go build -v -ldflags "-s -w -X 'main.Version=${LITESTREAM_VERSION}'" -o dist/litestream ./cmd/litestream + + GOOS=darwin GOARCH=amd64 CC="gcc -target amd64-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-amd64.zip openssl dgst -sha256 dist/litestream-${LITESTREAM_VERSION}-darwin-amd64.zip