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
.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