import { app , BrowserWindow } from "electron" ; import * as path from "path" ; import * as url from "url" ; import * as Splashscreen from "../index" ; let window ; app . on ( "ready" , ( ) => { const windowOptions = { width : 500 , height : 375 , show : false , } ; window = Splashscreen . initSplashScreen ( { windowOpts : windowOptions , templateUrl : path . join ( __dirname , ".." , "icon.svg" ) , delay : 0 , minVisible : 1500 , splashScreenOpts : { height : 500 , width : 500 , transparent : true , } , } ) ; window . loadURL ( `file://${ path . join ( __dirname , "example-app.html" ) }` ) ; } ) ; app . on ( "window-all-closed" , ( ) => { app . quit ( ) ; } ) ;