Skip to content

Commit

Permalink
build: Add missing withdeploy archive for Windows
Browse files Browse the repository at this point in the history
Fixes #13009
  • Loading branch information
bep committed Nov 5, 2024
1 parent 2b0b3b8 commit 94b46c3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions hugoreleaser.toml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,25 @@ archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
[[builds.os.archs]]
goarch = "amd64"

[[builds]]
path = "container1/windows/extended-withdeploy"

[builds.build_settings]
flags = ["-buildmode", "exe", "-tags", "extended,withdeploy"]
env = [
"CGO_ENABLED=1",
"CC=x86_64-w64-mingw32-gcc",
"CXX=x86_64-w64-mingw32-g++",
]
ldflags = "-s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio -extldflags '-static'"

[[builds.os]]
goos = "windows"
[builds.os.build_settings]
binary = "hugo.exe"
[[builds.os.archs]]
goarch = "amd64"

[[archives]]
paths = ["builds/container1/unix/regular/**"]
[[archives]]
Expand Down Expand Up @@ -212,6 +231,13 @@ archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
[archives.archive_settings.type]
format = "zip"
extension = ".zip"
[[archives]]
paths = ["builds/**/windows/extended-withdeploy/**"]
[archives.archive_settings]
name_template = "{{ .Project }}_extended_withdeploy_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
[archives.archive_settings.type]
format = "zip"
extension = ".zip"
[[archives]]
paths = ["builds/**/regular/linux/{arm64,amd64}"]
[archives.archive_settings]
Expand Down

0 comments on commit 94b46c3

Please sign in to comment.