summaryrefslogtreecommitdiffstats
path: root/hugoreleaser.toml
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-09-15 11:17:51 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-09-15 18:22:35 +0200
commit3f0b40f6745be98fa193896f4c65afb48b36e96e (patch)
tree93c36ffd2ce1f92e556a33b3dddea58d91a41d90 /hugoreleaser.toml
parent8e77bcc930bc8a6b0696a8c83369bd16e23b1833 (diff)
Use standard GOOS/GOARCH values in release archives
But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking). Fixes #10073
Diffstat (limited to 'hugoreleaser.toml')
-rw-r--r--hugoreleaser.toml24
1 files changed, 11 insertions, 13 deletions
diff --git a/hugoreleaser.toml b/hugoreleaser.toml
index 93266f97e..294c606c9 100644
--- a/hugoreleaser.toml
+++ b/hugoreleaser.toml
@@ -1,5 +1,15 @@
project = "hugo"
+# In Hugo v0.103.0 we removed the archive name replacements (e.g. amd64 => 64bit).
+# Using standard GOOS/GOARCH values makes it easier for scripts out there,
+# but to prevent breakage in Netlify etc. that has adopted to the old names,
+# we create aliases for the most common variants.
+# According to download numbers from v0.101.0, these are by a good margin the two most popular:
+# hugo_extended_0.101.0_Linux-64bit.tar.gz Downloaded 129,016 times
+# hugo_0.101.0_Linux-64bit.tar.gz Downloaded 87,846 times
+# This replacement will create 2 extra alias archives.
+archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
+
[go_settings]
go_proxy = "https://proxy.golang.org"
go_exe = "go"
@@ -19,18 +29,6 @@ project = "hugo"
[archive_settings.type]
format = "tar.gz"
extension = ".tar.gz"
- [archive_settings.replacements]
- amd64 = "64bit"
- 386 = "32bit"
- arm = "ARM"
- arm64 = "ARM64"
- darwin = "macOS"
- linux = "Linux"
- windows = "Windows"
- openbsd = "OpenBSD"
- netbsd = "NetBSD"
- freebsd = "FreeBSD"
- dragonfly = "DragonFlyBSD"
[release_settings]
name = "${HUGORELEASER_TAG}"
@@ -198,7 +196,7 @@ project = "hugo"
[archives.archive_settings.plugin]
id = "deb"
type = "gorun"
- command = "github.com/gohugoio/hugoreleaser-archive-plugins/deb@v0.5.0"
+ command = "github.com/gohugoio/hugoreleaser-archive-plugins/deb@v0.6.1"
[archives.archive_settings.custom_settings]
vendor = "gohugo.io"
homepage = "https://github.com/gohugoio/hugoreleaser"