// Will copy everythin from .gotron/dist to .dist
Will copy everythin from .gotron/dist to .dist
// Will copy everythin from . gotron / dist to . dist
func (app *App) syncDistDirs() (err error) {
	defer errz.Recover(&err)
	var ending string
	if app.Target == "mac" {
		ending = ""
	} else {
		ending = "-unpacked"
	}
	var distFolder string
	if app.Arch == "x64" {
		distFolder = app.Target + ending
	} else {
		distFolder = app.Target + "-" + app.Arch + ending
	}
	src := filepath.Join(".gotron/dist", distFolder)
	dst := filepath.Join(app.OutputDir, "dist", distFolder, "electronjs")
	err = copy.Copy(src, dst)
	err = os.RemoveAll(dst)
	errz.Fatal(err)
	options := &shutil.CopyTreeOptions{Symlinks: true,
		Ignore:                 nil,
		CopyFunction:           shutil.Copy,
		IgnoreDanglingSymlinks: false}
	err = shutil.CopyTree(src, dst, options)
	errz.Fatal(err)
	errz.Fatal(err)
	err = os.RemoveAll(filepath.Dir(src))
	errz.Fatal(err)
	return nil
}
func ( app * App ) syncDistDirs ( ) ( err error ) { defer errz . Recover ( & err ) var ending string if app . Target == " " { ending = " " } else { ending = " " } var distFolder string if app . Arch == " " { distFolder = app . Target + ending } else { distFolder = app . Target + " " + app . Arch + ending } src := filepath . Join ( " " , distFolder ) dst := filepath . Join ( app . OutputDir , " " , distFolder , " " ) err = copy . Copy ( src , dst ) err = os . RemoveAll ( dst ) errz . Fatal ( err ) options := & shutil . CopyTreeOptions { Symlinks : true , Ignore : nil , CopyFunction : shutil . Copy , IgnoreDanglingSymlinks : false } err = shutil . CopyTree ( src , dst , options ) errz . Fatal ( err ) errz . Fatal ( err ) err = os . RemoveAll ( filepath . Dir ( src ) ) errz . Fatal ( err ) return nil }
Will copy everythin from .gotron/dist to .dist
Will copy everythin from . gotron / dist to . dist