Add before-pack script and installer configuration for NSIS

This commit is contained in:
2026-06-01 11:16:07 +02:00
parent ed5a7d0994
commit 88223d744c
4 changed files with 129 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
// scripts/beforePack.mjs
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default async function () {
const src = path.resolve(__dirname, '../static/installSection.nsh');
const dest = path.resolve(__dirname, '../node_modules/app-builder-lib/templates/nsis/installSection.nsh');
fs.copyFileSync(src, dest);
console.log('✅ installSection.nsh parcheado');
}