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

Change dragonflybsd to dragonfly for ${process.platform}

Still seems to be undetectable — see below, looks like it'll end up downloading FreeBSD binary — but doesn't hurt to "fix." I'll test this one day...

2a7d66200b/tools/utils.py (L66)
This commit is contained in:
2020-03-09 14:19:07 -04:00
parent 1e1aa52fa7
commit 22656d3142
2 changed files with 6 additions and 7 deletions

View File

@@ -1,14 +1,13 @@
'use strict';
const path = require('path');
const binWrapper = require('bin-wrapper');
const BinWrapper = require('bin-wrapper');
const { hugoVersion } = require('../package.json');
const baseUrl = `https://github.com/gohugoio/hugo/releases/download/v${hugoVersion}/`;
// Default to extended Hugo, fall back to vanilla Hugo on unsupported platforms
// eslint-disable-next-line new-cap
module.exports = new binWrapper()
module.exports = new BinWrapper()
.src(`${baseUrl}hugo_extended_${hugoVersion}_Linux-64bit.tar.gz`, 'linux', 'x64')
.src(`${baseUrl}hugo_extended_${hugoVersion}_macOS-64bit.tar.gz`, 'darwin', 'x64')
.src(`${baseUrl}hugo_extended_${hugoVersion}_Windows-64bit.zip`, 'win32', 'x64')
@@ -26,6 +25,6 @@ module.exports = new binWrapper()
.src(`${baseUrl}hugo_${hugoVersion}_OpenBSD-64bit.tar.gz`, 'openbsd', 'x64')
.src(`${baseUrl}hugo_${hugoVersion}_OpenBSD-32bit.tar.gz`, 'openbsd', 'x86')
.src(`${baseUrl}hugo_${hugoVersion}_OpenBSD-ARM.tar.gz`, 'openbsd', 'arm')
.src(`${baseUrl}hugo_${hugoVersion}_DragonFlyBSD-64bit.tar.gz`, 'dragonflybsd', 'x64')
.src(`${baseUrl}hugo_${hugoVersion}_DragonFlyBSD-64bit.tar.gz`, 'dragonfly', 'x64')
.dest(path.join(__dirname, '../vendor'))
.use(process.platform === 'win32' ? 'hugo.exe' : 'hugo');