clientupdate: return ErrUnsupported for macSys clients (#9793)

The Sparkle-based update is not quite working yet. Make `NewUpdater`
return `ErrUnsupported` for it to avoid the proliferation of exceptions
up the stack.

Updates #755

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
Andrew Lytvynov
2023-10-16 09:14:14 -07:00
committed by GitHub
parent 51078b6486
commit 8a5b02133d
2 changed files with 4 additions and 4 deletions

View File

@@ -185,7 +185,9 @@ func (up *Updater) getUpdateFunction() updateFunction {
case !up.Arguments.AppStore && !version.IsSandboxedMacOS():
return nil
case !up.Arguments.AppStore && strings.HasSuffix(os.Getenv("HOME"), "/io.tailscale.ipn.macsys/Data"):
return up.updateMacSys
// TODO(noncombatant): return up.updateMacSys when we figure out why
// Sparkle update doesn't work when running "tailscale update".
return nil
default:
return up.updateMacAppStore
}