You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-09-15 22:35:31 -04:00
update release file naming scheme
https://github.com/gohugoio/hugo/releases/tag/v0.103.0
This commit is contained in:
20
lib/utils.js
20
lib/utils.js
@@ -57,8 +57,8 @@ export function doesBinExist(bin) {
|
||||
}
|
||||
}
|
||||
|
||||
// Hugo Extended supports: macOS x64, macOS ARM64, Linux x64, Windows x64.
|
||||
// all other combos fall back to vanilla Hugo. There are surely much better ways
|
||||
// Hugo Extended supports: macOS x64 / ARM64, Linux x64 / ARM64, Windows x64.
|
||||
// All other combos fall back to vanilla Hugo. There are surely much better ways
|
||||
// to do this but this is easy to read/update. :)
|
||||
export function getReleaseFilename(version) {
|
||||
const { platform, arch } = process;
|
||||
@@ -66,29 +66,29 @@ export function getReleaseFilename(version) {
|
||||
const filename =
|
||||
// macOS: as of 0.102.0, binaries are universal
|
||||
platform === "darwin" && arch === "x64" ?
|
||||
`hugo_extended_${version}_macOS-universal.tar.gz` :
|
||||
`hugo_extended_${version}_darwin-universal.tar.gz` :
|
||||
platform === "darwin" && arch === "arm64" ?
|
||||
`hugo_extended_${version}_macOS-universal.tar.gz` :
|
||||
`hugo_extended_${version}_darwin-universal.tar.gz` :
|
||||
|
||||
// Windows
|
||||
platform === "win32" && arch === "x64" ?
|
||||
`hugo_extended_${version}_Windows-64bit.zip` :
|
||||
`hugo_extended_${version}_windows-amd64.zip` :
|
||||
platform === "win32" && arch === "arm64" ?
|
||||
`hugo_${version}_Windows-ARM64.zip` :
|
||||
`hugo_${version}_windows-arm64.zip` :
|
||||
|
||||
// Linux
|
||||
platform === "linux" && arch === "x64" ?
|
||||
`hugo_extended_${version}_Linux-64bit.tar.gz` :
|
||||
`hugo_extended_${version}_linux-amd64.tar.gz` :
|
||||
platform === "linux" && arch === "arm64" ?
|
||||
`hugo_extended_${version}_Linux-ARM64.tar.gz` :
|
||||
`hugo_extended_${version}_linux-arm64.tar.gz` :
|
||||
|
||||
// FreeBSD
|
||||
platform === "freebsd" && arch === "x64" ?
|
||||
`hugo_${version}_FreeBSD-64bit.tar.gz` :
|
||||
`hugo_${version}_freebsd-amd64.tar.gz` :
|
||||
|
||||
// OpenBSD
|
||||
platform === "openbsd" && arch === "x64" ?
|
||||
`hugo_${version}_OpenBSD-64bit.tar.gz` :
|
||||
`hugo_${version}_openbsd-amd64.tar.gz` :
|
||||
|
||||
// not gonna work :(
|
||||
null;
|
||||
|
Reference in New Issue
Block a user