Skip to content

Commit

Permalink
vscode fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Mar 18, 2024
1 parent 2911b28 commit c19b707
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/versions/installers.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ type CodeProducts struct {
}

func vscodeAllowed(item *CodeItem) bool {
excludeList := []string{"_cli", ".deb", ".rpm"}
// excludeList := []string{"_cli", ".deb", ".rpm"}
excludeList := []string{"_cli", ".tar.gz", "armhf", "armv7hl"}
for _, excludeStr := range excludeList {
if strings.Contains(item.Url, excludeStr) {
return false
Expand All @@ -265,6 +266,9 @@ func vscodeAllowed(item *CodeItem) bool {
if strings.HasSuffix(item.Url, ".zip") && strings.Contains(item.Url, "darwin") {
return true
}
if strings.HasSuffix(item.Url, ".deb") || strings.HasSuffix(item.Url, ".rpm") {
return true
}
return false
}

Expand Down

0 comments on commit c19b707

Please sign in to comment.