import { app , BrowserWindow } from 'electron' ; import isDev from 'electron-is-dev' ; import { loadPlugins } from './util/plugins' ; import { makeSplashScreen } from './windows/splash' ; import { createMainWindow } from './windows/mainWindow' ; import { IPlugin } from '../common/types/plugins' ; let plugins = [ ] ; loadPlugins ( plugins ) ; app . setName ( 'Rainbow Board' ) ; app . whenReady ( ) . then ( ( ) => { createMainWindow ( isDev , plugins , null ) ; } ) ; app . on ( 'window-all-closed' , ( ) => { if ( process . platform !== 'darwin' ) { app . quit ( ) ; } } ) ; app . on ( 'activate' , ( ) => { if ( BrowserWindow . getAllWindows ( ) . length === 0 ) { createMainWindow ( isDev , plugins , null ) ; } } ) ;