1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-19 20:57:53 +02:00

docs: signing with mitchellh/gon (#1277)

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2019-12-26 23:14:40 -03:00 committed by GitHub
parent c5e9ba938d
commit c95a9c8c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,3 +64,42 @@ signs:
- foo
- bar
```
## Signing with gon
You can use [gon][] to create notarized macOS apps. Here's an example config:
```yaml
builds:
- binary: foo
id: foo
goos:
- linux
- windows
goarch:
- amd64
# notice that we need a separated build for the macos binary only:
- binary: foo
id: foo-macos
goos:
- darwin
goarch:
- amd64
signs:
- signature: "${artifact}.dmg"
ids:
- foo-macos # here we filter the macos only build id
# you'll need to have gon on PATH
cmd: gon
# you can follow the gon docs to properly create the gon.hcl config file:
# https://github.com/mitchellh/gon
args:
- gon.hcl
artifacts: all
```
Note that notarizing take some time, and will need to be run from a macOS machine.
You can also check [this issue](https://github.com/goreleaser/goreleaser/issues/1227) for more details.
[gon]: https://github.com/mitchellh/gon