code: func (p *defaultProvisioner) provisionElectronFinishDarwin(appName string, paths Paths) (err error) {
  	// Log
  	astilog.Debug("Finishing provisioning electron for darwin system")
  
  	// Custom app icon
  	if paths.AppIconDarwinSrc() != "" {
  		if err = p.provisionElectronFinishDarwinCopy(paths); err != nil {
  			return errors.Wrap(err, "copying for darwin system finish failed")
  		}
  	}
  
  	// Custom app name
  	if appName != "" {
  		// Replace
  		if err = p.provisionElectronFinishDarwinReplace(appName, paths); err != nil {
  			return errors.Wrap(err, "replacing for darwin system finish failed")
  		}
  
  		// Rename
  		if err = p.provisionElectronFinishDarwinRename(appName, paths); err != nil {
  			return errors.Wrap(err, "renaming for darwin system finish failed")
  		}
  	}
  	return
  }
docs: // provisionElectronFinishDarwin finishes provisioning electron for Darwin systems
  // https://github.com/electron/electron/blob/v1.8.1/docs/tutorial/application-distribution.md#macos