const { app, BrowserWindow } = require('electron'); const path = require('path'); app.whenReady().then(() => { const win = new BrowserWindow({ width: 1400, height: 900, webPreferences: { nodeIntegration: false }, titleBarStyle: 'hiddenInset', // mac-native title bar icon: path.join(__dirname, 'icon.png') }); win.loadFile(path.join(__dirname, 'dist', 'index.html')); }); app.on('window-all-closed', () => process.platform !== 'darwin' && app.quit());