feat: Add support for different processor architectures (#518)
ARM, ARM64
This commit is contained in:
parent
65bdbf15ab
commit
6d30a88741
10 changed files with 859 additions and 718 deletions
|
|
@ -1,4 +1,9 @@
|
|||
export default function getURL(os: string, extended: string, version: string): string {
|
||||
export default function getURL(
|
||||
os: string,
|
||||
arch: string,
|
||||
extended: string,
|
||||
version: string
|
||||
): string {
|
||||
const extendedStr = (extended: string): string => {
|
||||
if (extended === 'true') {
|
||||
return 'extended_';
|
||||
|
|
@ -17,7 +22,7 @@ export default function getURL(os: string, extended: string, version: string): s
|
|||
}
|
||||
};
|
||||
|
||||
const hugoName = `hugo_${extendedStr(extended)}${version}_${os}-64bit`;
|
||||
const hugoName = `hugo_${extendedStr(extended)}${version}_${os}-${arch}`;
|
||||
const baseURL = 'https://github.com/gohugoio/hugo/releases/download';
|
||||
const url = `${baseURL}/v${version}/${hugoName}.${ext(os)}`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue