1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-09-15 22:35:31 -04:00

as of Hugo 0.89.0, macOS binary is universal and Free/OpenBSD is x64 only

https://github.com/gohugoio/hugo/releases/tag/v0.89.0
This commit is contained in:
2021-11-02 08:53:48 -04:00
parent 8698b38887
commit 2f78efc9f8

View File

@@ -65,10 +65,8 @@ export function getReleaseFilename(version) {
const filename =
// macOS
platform === "darwin" && arch === "x64" ?
`hugo_extended_${version}_macOS-64bit.tar.gz` :
platform === "darwin" && arch === "arm64" ?
`hugo_extended_${version}_macOS-ARM64.tar.gz` :
platform === "darwin" ?
`hugo_extended_${version}_macOS-all.tar.gz` :
// Windows
platform === "win32" && arch === "x64" ?
@@ -91,22 +89,10 @@ export function getReleaseFilename(version) {
// FreeBSD
platform === "freebsd" && arch === "x64" ?
`hugo_${version}_FreeBSD-64bit.tar.gz` :
platform === "freebsd" && arch.endsWith("32") ?
`hugo_${version}_FreeBSD-32bit.tar.gz` :
platform === "freebsd" && arch === "arm" ?
`hugo_${version}_FreeBSD-ARM.tar.gz` :
platform === "freebsd" && arch === "arm64" ?
`hugo_${version}_FreeBSD-ARM64.tar.gz` :
// OpenBSD
platform === "openbsd" && arch === "x64" ?
`hugo_${version}_OpenBSD-64bit.tar.gz` :
platform === "openbsd" && arch.endsWith("32") ?
`hugo_${version}_OpenBSD-32bit.tar.gz` :
platform === "openbsd" && arch === "arm" ?
`hugo_${version}_OpenBSD-ARM.tar.gz` :
platform === "openbsd" && arch === "arm64" ?
`hugo_${version}_OpenBSD-ARM64.tar.gz` :
// not gonna work :(
null;