mirror of
https://github.com/Pandipipas/scoreko-electron-dev.git
synced 2026-06-06 05:32:06 +00:00
Add before-pack script and installer configuration for NSIS
This commit is contained in:
@@ -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');
|
||||
}
|
||||
Reference in New Issue
Block a user