hugo-extended 0.102.3 → 0.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils.js +10 -10
- package/package.json +1 -1
package/lib/utils.js
CHANGED
|
@@ -57,8 +57,8 @@ export function doesBinExist(bin) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
// Hugo Extended supports: macOS x64
|
|
61
|
-
//
|
|
60
|
+
// Hugo Extended supports: macOS x64 / ARM64, Linux x64 / ARM64, Windows x64.
|
|
61
|
+
// All other combos fall back to vanilla Hugo. There are surely much better ways
|
|
62
62
|
// to do this but this is easy to read/update. :)
|
|
63
63
|
export function getReleaseFilename(version) {
|
|
64
64
|
const { platform, arch } = process;
|
|
@@ -66,29 +66,29 @@ export function getReleaseFilename(version) {
|
|
|
66
66
|
const filename =
|
|
67
67
|
// macOS: as of 0.102.0, binaries are universal
|
|
68
68
|
platform === "darwin" && arch === "x64" ?
|
|
69
|
-
`hugo_extended_${version}
|
|
69
|
+
`hugo_extended_${version}_darwin-universal.tar.gz` :
|
|
70
70
|
platform === "darwin" && arch === "arm64" ?
|
|
71
|
-
`hugo_extended_${version}
|
|
71
|
+
`hugo_extended_${version}_darwin-universal.tar.gz` :
|
|
72
72
|
|
|
73
73
|
// Windows
|
|
74
74
|
platform === "win32" && arch === "x64" ?
|
|
75
|
-
`hugo_extended_${version}
|
|
75
|
+
`hugo_extended_${version}_windows-amd64.zip` :
|
|
76
76
|
platform === "win32" && arch === "arm64" ?
|
|
77
|
-
`hugo_${version}
|
|
77
|
+
`hugo_${version}_windows-arm64.zip` :
|
|
78
78
|
|
|
79
79
|
// Linux
|
|
80
80
|
platform === "linux" && arch === "x64" ?
|
|
81
|
-
`hugo_extended_${version}
|
|
81
|
+
`hugo_extended_${version}_linux-amd64.tar.gz` :
|
|
82
82
|
platform === "linux" && arch === "arm64" ?
|
|
83
|
-
`hugo_extended_${version}
|
|
83
|
+
`hugo_extended_${version}_linux-arm64.tar.gz` :
|
|
84
84
|
|
|
85
85
|
// FreeBSD
|
|
86
86
|
platform === "freebsd" && arch === "x64" ?
|
|
87
|
-
`hugo_${version}
|
|
87
|
+
`hugo_${version}_freebsd-amd64.tar.gz` :
|
|
88
88
|
|
|
89
89
|
// OpenBSD
|
|
90
90
|
platform === "openbsd" && arch === "x64" ?
|
|
91
|
-
`hugo_${version}
|
|
91
|
+
`hugo_${version}_openbsd-amd64.tar.gz` :
|
|
92
92
|
|
|
93
93
|
// not gonna work :(
|
|
94
94
|
null;
|
package/package.json
CHANGED