import { getMainWindow } from '@emeraldwallet/electron-app' ; import { app , BrowserWindow } from 'electron' ; import * as path from 'path' ; const options = { appIconPath : path . join ( app . getAppPath ( ) , 'icons/512x512.png' ) , mainWndPath : path . join ( app . getAppPath ( ) , 'index.html' ) } ; function createWindow ( ) { const win = new BrowserWindow ( { width : 800 , height : 600 , icon : options . appIconPath , webPreferences : { nodeIntegration : true } } ) ; win . loadFile ( 'index.html' ) ; } app . on ( 'ready' , ( ) => { const browserWindow = getMainWindow ( null , options ) ; } ) ;