From e7ecd712e2c117a131241774dd4d4bf527299d67 Mon Sep 17 00:00:00 2001 From: Brian Hursey Date: Tue, 1 Dec 2026 12:24:37 +0000 Subject: [PATCH] Create the NSIS cache directory on a fresh build --installer unpacks a private NSIS into /tools/nsis, but dpkg-deb creates only the leaf directory, so the build failed whenever --out had no tools/ yet. The parent is created first. --- windows/build.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windows/build.mjs b/windows/build.mjs index befffd4..cd5d6a6 100644 --- a/windows/build.mjs +++ b/windows/build.mjs @@ -654,6 +654,9 @@ async function fetchMakensis(outDir) { const root = path.join(outDir, 'tools', 'nsis'); mkdirSync(debs, { recursive: true }); rmSync(root, { recursive: true, force: true }); + // dpkg-deb -x creates the destination itself but not its parents, and a + // fresh --out has no tools/ yet. + mkdirSync(root, { recursive: true }); for (const name of [`nsis_${packVersion}_amd64.deb`, `nsis-common_${packVersion}_all.deb`]) { const file = path.join(debs, name); if (!existsSync(file)) {