1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00

docs: improve universal binaries docs

closes #2579
This commit is contained in:
Carlos A Becker 2021-10-26 23:10:49 -03:00
parent 299d9bc273
commit 679ed3b7c9
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -18,6 +18,8 @@ universal_binaries:
# Universal binary name template.
#
# You will want to change this if you have multiple builds!
#
# Defaults to '{{ .ProjectName }}'
name_template: '{{.ProjectName}}_{{.Version}}'
@ -44,3 +46,16 @@ removing the single-arch binaries from the artifact list.
From there, the `Arch` template variable for this file will be `all`.
You can use the Go template engine to remove it if you'd like.
!!! warning
You'll want to change `name_template` for each `id` you add in universal binaries, otherwise they'll have the same name.
Example:
```yaml
universal_binaries:
- id: foo
name_template: bin1
- id: bar
name_template: bin2
```