You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
438 B
20 lines
438 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build (linux && !android) || windows
|
|
|
|
package clientupdate
|
|
|
|
import (
|
|
"context"
|
|
|
|
"tailscale.com/clientupdate/distsign"
|
|
)
|
|
|
|
func (up *Updater) downloadURLToFile(pathSrc, fileDst string) (ret error) {
|
|
c, err := distsign.NewClient(up.Logf, up.PkgsAddr)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return c.Download(context.Background(), pathSrc, fileDst)
|
|
}
|
|
|