import { app , BrowserWindow } from 'electron' ; import SquirrelEvents from './app/events/squirrel.events' ; import ElectronEvents from './app/events/electron.events' ; import UpdateEvents from './app/events/update.events' ; import App from './app/app' ; export default class Main { static initialize ( ) { if ( SquirrelEvents . handleEvents ( ) ) { app . quit ( ) ; } } static bootstrapApp ( ) { App . main ( app , BrowserWindow ) ; } static bootstrapAppEvents ( ) { ElectronEvents . bootstrapElectronEvents ( ) ; if ( ! App . isDevelopmentMode ( ) ) { UpdateEvents . initAutoUpdateService ( ) ; } } } Main . initialize ( ) ; Main . bootstrapApp ( ) ; Main . bootstrapAppEvents ( ) ;