@inizioevoke/electron-packager
v1.0.1
Published
Build an Electron package from your built project files.
Keywords
Readme
@inizioevoke/electron-packager
Build an Electron package from your built project files.
import { join, resolve } from 'node:path';
import { buildElectronPackage } from '@inizioevoke/electron-packager';
const root = 'DEFINE YOUR ROOT';
await buildElectronPackage({
name: 'my-project', // the name of the package
dir: join(root, 'dist'), // your built files
out: join(root, 'electron'), // the location the Electron package should be written to
// Additional menu items
menu: [{
label: 'Analytics',
href: '/conference/analytics.html'
}, {
label: 'Help',
href: '/conference/help.html'
}],
// Additional files to put into the package
additionalFiles: [
join(root, 'conference')
]
});