mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 12:56:36 +02:00
selfupdate: fix archive name on macos
This commit is contained in:
parent
28e9fd45cc
commit
119bddc10b
@ -337,8 +337,8 @@ func makeRandomExeName(baseName, extension string) (string, error) {
|
|||||||
func downloadUpdate(ctx context.Context, beta bool, version, siteURL, newFile, packageFormat string) error {
|
func downloadUpdate(ctx context.Context, beta bool, version, siteURL, newFile, packageFormat string) error {
|
||||||
osName := runtime.GOOS
|
osName := runtime.GOOS
|
||||||
arch := runtime.GOARCH
|
arch := runtime.GOARCH
|
||||||
if arch == "darwin" {
|
if osName == "darwin" {
|
||||||
arch = "osx"
|
osName = "osx"
|
||||||
}
|
}
|
||||||
|
|
||||||
archiveFilename := fmt.Sprintf("rclone-%s-%s-%s.%s", version, osName, arch, packageFormat)
|
archiveFilename := fmt.Sprintf("rclone-%s-%s-%s.%s", version, osName, arch, packageFormat)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user