예제 #1
0
파일: update.go 프로젝트: mark-adams/client
// DefaultUpdaterOptions returns update config for this environment
func DefaultUpdaterOptions(g *libkb.GlobalContext) *keybase1.UpdateOptions {
	ret := &keybase1.UpdateOptions{
		Version:  libkb.VersionString(),
		Channel:  "main", // The default channel
		Platform: runtime.GOOS,
		Source:   string(sources.DefaultUpdateSourceName()),
	}
	switch {
	case runtime.GOOS == "darwin" && g.Env.GetRunMode() == libkb.ProductionRunMode:
		ret.DestinationPath = "/Applications/Keybase.app"
	}
	return ret
}
예제 #2
0
파일: update.go 프로젝트: mark-adams/client
func DefaultUpdateSource(g *libkb.GlobalContext) sources.UpdateSource {
	u, _ := NewUpdateSource(g, sources.DefaultUpdateSourceName())
	return u
}