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:
parent
c5e9ba938d
commit
c95a9c8c15
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user