You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-07-03 19:16:37 -04:00
15 lines
509 B
JavaScript
15 lines
509 B
JavaScript
const path = require('path');
|
|
const BinWrapper = require('bin-wrapper');
|
|
const getBinalyName = require('./getBinalyName');
|
|
const pkg = require('../package');
|
|
|
|
const hugoVersion = pkg.hugoVersion;
|
|
const baseUrl = `https://github.com/spf13/hugo/releases/download/v${hugoVersion}/`;
|
|
|
|
const binalyNames = getBinalyName(hugoVersion, process.platform, process.arch);
|
|
|
|
module.exports = new BinWrapper()
|
|
.src(`${baseUrl}${binalyNames.comp}`)
|
|
.dest(path.join(__dirname, '../vendor'))
|
|
.use(`${binalyNames.exe}`);
|