// BuildAll Builds the local ssh agent for Windows, Mac and Linux
BuildAll Builds the local ssh agent for Windows, Mac and Linux
// BuildAll Builds the local ssh agent for Windows Mac and Linux
func BuildAll() error {
	if runtime.GOOS == "windows" {
		env := map[string]string{
			"GOOS":   "linux",
			"GOARCH": "amd64",
		}
		err := sh.RunWith(env, "go", "build", "-o", "./deploy/linux/sshrimp-agent-linux", "./cmd/sshrimp-agent")
		if err != nil {
			return err
		}
		env = map[string]string{
			"GOOS":   "darwin",
			"GOARCH": "amd64",
		}
		err = sh.RunWith(env, "go", "build", "-o", "./deploy/mac/sshrimp-agent-mac", "./cmd/sshrimp-agent")
		if err != nil {
			return err
		}
		env = map[string]string{
			"GOOS":   "windows",
			"GOARCH": "amd64",
		}
		err = sh.RunWith(env, "go", "build", "-o", "./deploy/windows/sshrimp-agent-windows.exe", "./cmd/sshrimp-agent")
		return err
	} else {
		return errors.New("Building for all platforms can only be performed on a Windows System")
	}
}
func BuildAll ( ) error { if runtime . GOOS == " " { env := map [ string ] string { " " : " " , " " : " " , } err := sh . RunWith ( env , " " , " " , " " , " " , " " ) if err != nil { return err } env = map [ string ] string { " " : " " , " " : " " , } err = sh . RunWith ( env , " " , " " , " " , " " , " " ) if err != nil { return err } env = map [ string ] string { " " : " " , " " : " " , } err = sh . RunWith ( env , " " , " " , " " , " " , " " ) return err } else { return errors . New ( " " ) } }
BuildAll Builds the local ssh agent for Windows, Mac and Linux
BuildAll Builds the local ssh agent for Windows Mac and Linux
// if running windows, compile for all platforms // build linux // build mac (darwin) // build windows