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

add support for Linux ARM64 and macOS universal binaries, remove 32-bit releases

This commit is contained in:
2022-08-28 16:23:27 -04:00
parent bb6bffa606
commit 0119855e65
3 changed files with 129 additions and 123 deletions

View File

@@ -64,31 +64,23 @@ export function getReleaseFilename(version) {
const { platform, arch } = process;
const filename =
// macOS
// macOS: as of 0.102.0, binaries are universal
platform === "darwin" && arch === "x64" ?
`hugo_extended_${version}_macOS-64bit.tar.gz` :
`hugo_extended_${version}_macOS-universal.tar.gz` :
platform === "darwin" && arch === "arm64" ?
`hugo_extended_${version}_macOS-ARM64.tar.gz` :
`hugo_extended_${version}_macOS-universal.tar.gz` :
// Windows
platform === "win32" && arch === "x64" ?
`hugo_extended_${version}_Windows-64bit.zip` :
platform === "win32" && arch.endsWith("32") ?
`hugo_${version}_Windows-32bit.zip` :
platform === "win32" && arch === "arm" ?
`hugo_${version}_Windows-ARM.zip` :
platform === "win32" && arch === "arm64" ?
`hugo_${version}_Windows-ARM64.zip` :
// Linux
platform === "linux" && arch === "x64" ?
`hugo_extended_${version}_Linux-64bit.tar.gz` :
platform === "linux" && arch.endsWith("32") ?
`hugo_${version}_Linux-32bit.tar.gz` :
platform === "linux" && arch === "arm" ?
`hugo_${version}_Linux-ARM.tar.gz` :
platform === "linux" && arch === "arm64" ?
`hugo_${version}_Linux-ARM64.tar.gz` :
`hugo_extended_${version}_Linux-ARM64.tar.gz` :
// FreeBSD
platform === "freebsd" && arch === "x64" ?