mirror of
https://github.com/MedzikUser/go-github-selfupdate.git
synced 2024-08-15 03:25:29 +00:00
Merge pull request #21 from pieterclaerhout/master
Update detect.go to add support for tgz files
This commit is contained in:
commit
c328ee2035
1 changed files with 1 additions and 1 deletions
|
@ -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" {
|
||||
|
|
Loading…
Reference in a new issue