Commit 4db33d30 authored by Aral Balkan's avatar Aral Balkan

Update build script with latest Hugo version

parent 19b06f58
......@@ -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)
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment