const { app, BrowserWindow, Menu } = require('electron'); function createWindow() { const win = new BrowserWindow({ width: 800, height: 600, icon: 'public/icon.png', }); win.loadFile('dist/electron-app/browser/index.html'); } app.whenReady().then(() => { createWindow() }) const appMenu = [ { label: 'Fájl', submenu: [ { label: 'Kilép', role: 'quit', accelerator: 'CmdOrCtrl+K' } ] }, { label: 'Súgó', submenu: [ { label: 'Névjegy', role: 'about', accelerator: 'CmdOrCtrl+N' } ] } ] app.setAboutPanelOptions({ applicationName: 'Angular Electron App', applicationVersion: '1.0.0', copyright: 'Copyright (c) 2022, Nagy János', authors: ['Nagy János'], website: 'https://szit.hu', iconPath: 'public/icon.png' }) app.on('ready', () => { const menu = Menu.buildFromTemplate(appMenu) Menu.setApplicationMenu(menu) })