From fdad9d2127f2cbc51911b618d8fe75aad3eb77bc Mon Sep 17 00:00:00 2001 From: Pieter Claerhout Date: Sat, 19 Oct 2019 12:46:25 +0200 Subject: [PATCH] Update detect.go https://github.com/rhysd/go-github-selfupdate/issues/20 --- selfupdate/detect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfupdate/detect.go b/selfupdate/detect.go index a8c61fd..4c9ec52 100644 --- a/selfupdate/detect.go +++ b/selfupdate/detect.go @@ -72,7 +72,7 @@ func findReleaseAndAsset(rels []*github.RepositoryRelease, targetVersion string) // Generate candidates suffixes := make([]string, 0, 2*7*2) for _, sep := range []rune{'_', '-'} { - for _, ext := range []string{".zip", ".tar.gz", ".gzip", ".gz", ".tar.xz", ".xz", ""} { + for _, ext := range []string{".zip", ".tar.gz", ".tgz", ".gzip", ".gz", ".tar.xz", ".xz", ""} { suffix := fmt.Sprintf("%s%c%s%s", runtime.GOOS, sep, runtime.GOARCH, ext) suffixes = append(suffixes, suffix) if runtime.GOOS == "windows" {