mirror of
https://github.com/Pandipipas/scoreko-electron-dev.git
synced 2026-06-05 21:22:07 +00:00
13 lines
473 B
JavaScript
13 lines
473 B
JavaScript
// 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');
|
|
} |