// CreatAppStructure -
// Get electron and web files. Put them into gbw.AppFolder (default ".gotron")
CreatAppStructure
Get electron and web files. Put them into gbw.AppFolder (default ".gotron")
// CreatAppStructure - // Get electron and web files . Put them into gbw . AppFolder ( default " . gotron " )
func (gbw *BrowserWindow) CreateAppStructure(forceInstall ...bool) (err error) {
	var _forceInstall bool
	for _, v := range forceInstall {
		_forceInstall = v
	}
	defer errz.Recover(&err)
	err = os.MkdirAll(gbw.AppDirectory, 0777)
	errz.Fatal(err)
	err = gbw.copyElectronApplication(_forceInstall)
	errz.Fatal(err)
	err = gbw.runNPM(_forceInstall)
	errz.Fatal(err)
	return nil
}
func ( gbw * BrowserWindow ) CreateAppStructure ( forceInstall ... bool ) ( err error ) { var _forceInstall bool for _ , v := range forceInstall { _forceInstall = v } defer errz . Recover ( & err ) err = os . MkdirAll ( gbw . AppDirectory , 0777 ) errz . Fatal ( err ) err = gbw . copyElectronApplication ( _forceInstall ) errz . Fatal ( err ) err = gbw . runNPM ( _forceInstall ) errz . Fatal ( err ) return nil }
CreatAppStructure
Get electron and web files.
CreatAppStructure Get electron and web files .
// Copy Electron Files // Run npm install