From 8c8e6555d10b3ec7cf878c5115c245469f1f7353 Mon Sep 17 00:00:00 2001 From: zc Date: Tue, 21 Dec 2021 17:20:53 +0800 Subject: [PATCH] build binary for darwin (#522) --- .goreleaser.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 330bf5100..6f75f0946 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,7 +25,7 @@ builds: # the best practice is using prebuilt builder # however it's a Pro feature - - id: eru-core + - id: eru-core-linux binary: eru-core hooks: post: @@ -36,6 +36,20 @@ builds: goarch: - amd64 + - id: eru-core-darwin + binary: eru-core + env: + - CGO_ENABLED=0 + ldflags: + - -w -s + - -X github.com/projecteru2/core/version.REVISION={{.Commit}} + - -X github.com/projecteru2/core/version.VERSION={{.Env.VERSION}} + - -X github.com/projecteru2/core/version.BUILTAT={{.Date}} + goos: + - darwin + goarch: + - amd64 + archives: - replacements: darwin: Darwin