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

docs: add docs for universal binaries hook (#2696)

This commit is contained in:
Weslei Juan Novaes Pereira 2021-11-24 10:30:23 -03:00 committed by GitHub
parent cd261a527a
commit e53b4940de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,13 +26,22 @@ universal_binaries:
#
# Defaults to false.
replace: true
# Hooks can be used to customize the final binary,
# for example, to run generators.
# Those fields allow templates.
# Default is both hooks empty.
hooks:
pre: rice embed-go
post: ./script.sh {{ .Path }}
```
!!! tip
Learn more about the [name template engine](/customization/templates/).
The minimal configuration for most setups would look like this:
For more info about hooks, see the [build section](/customization/build/#build-hooks).
The minimal configuration for most setups would look like this:
```yaml
# .goreleaser.yml
universal_binaries: