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
.gitignore vendored
View File

@@ -1,2 +1,3 @@
dist/
gon.hcl

View File

@@ -2,7 +2,8 @@ before:
hooks:
- go mod tidy
builds:
- env:
- id: ctrld
env:
- CGO_ENABLED=0
flags:
- -trimpath
@@ -25,6 +26,21 @@ builds:
gomips:
- softfloat
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:
- format_overrides:
- goos: windows