diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-02-17 13:52:58 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-02-18 14:11:48 +0100 |
commit | 29fb456c9e63ee1a2314bf4a7227a5146e7f9b31 (patch) | |
tree | 96e953866332032108fdf850ba48ca1c16958a09 /goreleaser.yml | |
parent | 718fba7d63424017cb3b9774c33e7acc69c68af6 (diff) |
build: Add arm64 to Darwinextended build and add vendorInfo
Closes #8003
Diffstat (limited to 'goreleaser.yml')
-rw-r--r-- | goreleaser.yml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/goreleaser.yml b/goreleaser.yml index d0da3e0cd..48361739b 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -9,7 +9,7 @@ builds: - binary: hugo id: hugo - ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} + ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio env: - CGO_ENABLED=0 flags: @@ -38,7 +38,7 @@ builds: binary: hugo id: hugo_extended_windows ldflags: - - -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} + - -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio - "-extldflags '-static'" env: - CGO_ENABLED=1 @@ -55,7 +55,7 @@ builds: - amd64 - binary: hugo id: hugo_extended_darwin - ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} + ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio env: - CGO_ENABLED=1 - CC=o64-clang @@ -69,9 +69,10 @@ builds: - darwin goarch: - amd64 + - arm64 - binary: hugo id: hugo_extended_linux - ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} + ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio env: - CGO_ENABLED=1 flags: @@ -83,7 +84,6 @@ builds: - linux goarch: - amd64 - release: draft: true @@ -146,7 +146,7 @@ nfpms: maintainer: "Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>" description: "A Fast and Flexible Static Site Generator built with love in GoLang." license: "Apache 2.0" - name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" + file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" replacements: amd64: 64bit 386: 32bit @@ -169,7 +169,7 @@ nfpms: maintainer: "Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>" description: "A Fast and Flexible Static Site Generator built with love in GoLang." license: "Apache 2.0" - name_template: "{{.ProjectName}}_extended_{{.Version}}_{{.Os}}-{{.Arch}}" + file_name_template: "{{.ProjectName}}_extended_{{.Version}}_{{.Os}}-{{.Arch}}" replacements: amd64: 64bit 386: 32bit |