mirror of
https://github.com/goreleaser/goreleaser.git
synced 2024-12-29 01:44:39 +02:00
feat(notary): allow to sign without notarizing (#4919)
closes #4890 - [x] docs - [ ] tests
This commit is contained in:
parent
1e076de708
commit
2d54bf0211
@ -100,6 +100,13 @@ func signAndNotarize(ctx *context.Context, cfg config.MacOSSignNotarize) error {
|
||||
return fmt.Errorf("notarize: macos: %s: %w", bin.Path, err)
|
||||
}
|
||||
|
||||
if cfg.Notarize.IssuerID == "" ||
|
||||
cfg.Notarize.KeyID == "" ||
|
||||
cfg.Notarize.Key == "" {
|
||||
log.WithField("binary", bin.Path).Info("will not try to notarize")
|
||||
continue
|
||||
}
|
||||
|
||||
notarizeCfg := quill.NewNotarizeConfig(
|
||||
cfg.Notarize.IssuerID,
|
||||
cfg.Notarize.KeyID,
|
||||
|
@ -88,5 +88,12 @@ notarize:
|
||||
base64 -w0 < ./ApiKey_AAABBBCCC.p8
|
||||
```
|
||||
|
||||
## Signing only
|
||||
|
||||
> Since v2.1
|
||||
|
||||
If you want to only sign the binaries, but not notarize them, you can simply
|
||||
leave the `notarize` section of your configuration empty.
|
||||
|
||||
[unibin]: ./universalbinaries.md
|
||||
[quill]: https://github.com/anchore/quill
|
||||
|
Loading…
Reference in New Issue
Block a user