You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-06-14 14:35:27 -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... https://github.com/nodejs/node/blob/2a7d66200b53f645b4f7e412ed080f249e2e667e/tools/utils.py#L66
This commit is contained in:
+3
-4
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user