code: func (b *Bundler) Bundle() (err error) {
  	// Create the output folder
  	astilog.Debugf("Creating %s", b.pathOutput)
  	if err = os.MkdirAll(b.pathOutput, 0755); err != nil {
  		err = errors.Wrapf(err, "mkdirall %s failed", b.pathOutput)
  		return
  	}
  
  	// Loop through environments
  	for _, e := range b.environments {
  		astilog.Debugf("Bundling for environment %s/%s", e.OS, e.Arch)
  		if err = b.bundle(e); err != nil {
  			err = errors.Wrapf(err, "bundling for environment %s/%s failed", e.OS, e.Arch)
  			return
  		}
  	}
  	return
  }
docs: // Bundle bundles an astilectron app based on a configuration