Files
hugo-extended/lib/binary.js
T
2016-05-31 02:44:50 +09:00

14 lines
486 B
JavaScript

const path = require('path');
const BinWrapper = require('bin-wrapper');
const getBinalyName = require('./getBinalyName');
const HUGO_VERSION = '0.15';
const baseUrl = `https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/`;
const binalyNames = getBinalyName(HUGO_VERSION);
module.exports = new BinWrapper()
.src(`${baseUrl}${binalyNames.binaryName}${binalyNames.comp}`)
.dest(path.join(__dirname, '../vendor'))
.use(`${binalyNames.binaryName}${binalyNames.exe}`);