Create the NSIS cache directory on a fresh build

--installer unpacks a private NSIS into <out>/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.
This commit is contained in:
2026-12-01 12:24:37 +00:00
parent 7eac7e7ecf
commit e7ecd712e2
+3
View File
@@ -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)) {