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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user