build: Add missing withdeploy archive for Windows

Fixes #13009
This commit is contained in:
Bjørn Erik Pedersen 2024-11-05 09:19:16 +01:00
parent 2b0b3b8584
commit 94b46c36b4

View file

@ -185,6 +185,25 @@ archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
[[builds.os.archs]] [[builds.os.archs]]
goarch = "amd64" 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]] [[archives]]
paths = ["builds/container1/unix/regular/**"] paths = ["builds/container1/unix/regular/**"]
[[archives]] [[archives]]
@ -212,6 +231,13 @@ archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
[archives.archive_settings.type] [archives.archive_settings.type]
format = "zip" format = "zip"
extension = ".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]] [[archives]]
paths = ["builds/**/regular/linux/{arm64,amd64}"] paths = ["builds/**/regular/linux/{arm64,amd64}"]
[archives.archive_settings] [archives.archive_settings]