Merge pull request #13 from Control-D-Inc/goreleaser-macos-notarize

Add notarizing darwin binary with gon
This commit is contained in:
Yegor S
2023-02-06 22:42:45 -05:00
committed by GitHub
2 changed files with 18 additions and 1 deletions
+1
View File
@@ -1,2 +1,3 @@
dist/ dist/
gon.hcl
+17 -1
View File
@@ -2,7 +2,8 @@ before:
hooks: hooks:
- go mod tidy - go mod tidy
builds: builds:
- env: - id: ctrld
env:
- CGO_ENABLED=0 - CGO_ENABLED=0
flags: flags:
- -trimpath - -trimpath
@@ -25,6 +26,21 @@ builds:
gomips: gomips:
- softfloat - softfloat
main: ./cmd/ctrld main: ./cmd/ctrld
- id: ctrld-darwin
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
goos:
- darwin
goarch:
- amd64
- arm64
main: ./cmd/ctrld
hooks:
post: gon gon.hcl
archives: archives:
- format_overrides: - format_overrides:
- goos: windows - goos: windows