aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-11-05 09:19:16 +0100
committerBjørn Erik Pedersen <[email protected]>2024-11-05 11:40:42 +0100
commit94b46c36b4c808e47ac0727f4fbaae74705f4483 (patch)
tree909e56c316b882fb9625eae7a237af0776ad3876
parent2b0b3b8584f5b6554f61b15fbe25dc664d9bcc7f (diff)
downloadhugo-94b46c36b4c808e47ac0727f4fbaae74705f4483.tar.gz
hugo-94b46c36b4c808e47ac0727f4fbaae74705f4483.zip
build: Add missing withdeploy archive for Windows
Fixes #13009
-rw-r--r--hugoreleaser.toml26
1 files changed, 26 insertions, 0 deletions
diff --git a/hugoreleaser.toml b/hugoreleaser.toml
index 8c3693739..2cb8e3665 100644
--- a/hugoreleaser.toml
+++ b/hugoreleaser.toml
@@ -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]]
@@ -213,6 +232,13 @@ archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
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]
binary_dir = "/usr/local/bin"