mirror of
https://github.com/MedzikUser/go-github-selfupdate.git
synced 2024-08-15 03:25:29 +00:00
Update detect.go
https://github.com/rhysd/go-github-selfupdate/issues/20
This commit is contained in:
parent
04c8f18cca
commit
fdad9d2127
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ func findReleaseAndAsset(rels []*github.RepositoryRelease, targetVersion string)
|
||||||
// Generate candidates
|
// Generate candidates
|
||||||
suffixes := make([]string, 0, 2*7*2)
|
suffixes := make([]string, 0, 2*7*2)
|
||||||
for _, sep := range []rune{'_', '-'} {
|
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)
|
suffix := fmt.Sprintf("%s%c%s%s", runtime.GOOS, sep, runtime.GOARCH, ext)
|
||||||
suffixes = append(suffixes, suffix)
|
suffixes = append(suffixes, suffix)
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
|
|
Loading…
Reference in a new issue