Add notarizing darwin binary with gon

This commit is contained in:
Cuong Manh Le
2023-02-07 09:34:42 +07:00
committed by Cuong Manh Le
parent 924304a13d
commit 31b30c52b1
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