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