1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00

docs: improve docs on sign

closes #1319

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2020-01-30 10:09:47 -03:00
parent 181799c9c8
commit 8408c1b83d
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -69,6 +69,26 @@ signs:
- bar
```
## Limitations
You can sign with any command that outputs a file.
If what you want to use does not do it, you can always hack by setting the
command to `sh -c`. For example:
```yaml
# goreleaser.yml
signs:
- cmd: sh
args:
- '-c'
- 'echo "${artifact} is signed and I can prove it" | tee ${signature}'
artifacts: all
```
And it will work just fine. Just make sure to always use the `${signature}`
template variable as the result file name and `${artifact}` as the origin file.
## Signing with gon
You can use [gon][] to create notarized macOS apps. Here's an example config: