...
 
Commits (2)
......@@ -116,30 +116,6 @@ const resources = [
'node_modules/le-store-certbot/renewal.conf.tpl', // Template used to write out the Let’s Encrypt renewal config.
]
//
// Platform-specific resources (mkcert, used by nodecert and hugo, used by node-hugo)
//
// const linuxX64Resources = resources.concat([
// // 'node_modules/@ind.ie/nodecert/mkcert-bin/mkcert-v1.4.0-linux-amd64',
// // 'node_modules/@small-tech/node-hugo/hugo-bin/hugo-v0.64.0-linux-amd64'
// ])
// const linuxArmResources = resources.concat([
// 'node_modules/@ind.ie/nodecert/mkcert-bin/mkcert-v1.4.0-linux-arm',
// 'node_modules/@small-tech/node-hugo/hugo-bin/hugo-v0.64.0-linux-arm'
// ])
// const macOsResources = resources.concat([
// 'node_modules/@ind.ie/nodecert/mkcert-bin/mkcert-v1.4.0-darwin-amd64',
// 'node_modules/@small-tech/node-hugo/hugo-bin/hugo-v0.64.0-darwin-amd64'
// ])
// const windowsResources = resources.concat([
// 'node_modules/@ind.ie/nodecert/mkcert-bin/mkcert-v1.4.0-windows-amd64.exe',
// 'node_modules/@small-tech/node-hugo/hugo-bin/hugo-v0.64.0-windows-amd64.exe'
// ])
const input = 'bin/site.js'
//
......@@ -172,7 +148,7 @@ async function build () {
}
function removeHugoBinary(platform) {
const fileName = `hugo-v0.64.0-${platform}`
const fileName = `hugo-v0.64.1-${platform}`
fs.moveSync(path.join(hugoBinaryPath, fileName), path.join(hugoTemporaryPath, fileName), {overwrite: true})
}
......@@ -182,7 +158,7 @@ async function build () {
}
function restoreHugoBinary(platform) {
const fileName = `hugo-v0.64.0-${platform}`
const fileName = `hugo-v0.64.1-${platform}`
fs.moveSync(path.join(hugoTemporaryPath, fileName), path.join(hugoBinaryPath, fileName))
}
......@@ -198,7 +174,7 @@ async function build () {
function removeAllHugoPlatforms () {
platforms.forEach(platform => {
if (fs.existsSync(path.join(hugoBinaryPath, `hugo-v0.64.0-${platform}`))) {
if (fs.existsSync(path.join(hugoBinaryPath, `hugo-v0.64.1-${platform}`))) {
removeHugoBinary(platform)
}
})
......
......@@ -225,9 +225,9 @@
}
},
"@small-tech/node-hugo": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@small-tech/node-hugo/-/node-hugo-1.1.0.tgz",
"integrity": "sha512-6sTZ1a460sgTHei9KE6FrLWEhHfzr5I7eo6AMCi43WSUD1DmyVSIwXAFIZZpnssY3YnNrFTQ4FxlyxKsAnSfMQ==",
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@small-tech/node-hugo/-/node-hugo-1.1.1.tgz",
"integrity": "sha512-pyGYolBKV/+U8np3xYTr3n/l0IzI/sTBuwrA60lEQ13LCO1paBqVr935IJHUYUoY78cSUtq90p8mNmPUJtexJw==",
"requires": {
"fs-extra": "^8.1.0"
}
......