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

bump careful-downloader to 2.0.0

https://github.com/jakejarvis/careful-downloader/releases/tag/v2.0.0
This commit is contained in:
2021-10-16 07:24:49 -04:00
parent 4709412308
commit abd1ca427f
3 changed files with 35 additions and 74 deletions

View File

@@ -45,18 +45,13 @@ async function installHugo() {
}
// download release from GitHub and verify its checksum
const download = await downloader(
getReleaseUrl(version, releaseFile),
getReleaseUrl(version, checksumFile),
{
filename: releaseFile,
destDir: "vendor",
cleanDestDir: false,
algorithm: "sha256",
encoding: "binary",
extract: true,
},
);
const download = await downloader(getReleaseUrl(version, releaseFile), {
checksumUrl: getReleaseUrl(version, checksumFile),
filename: releaseFile,
destDir: "vendor",
algorithm: "sha256",
extract: true,
});
// ensure hugo[.exe] is executable
fs.chmodSync(path.join(download, binFile), 0o755);