From c19b707900f0fc76762fe7673c4d0cccd2f9eb15 Mon Sep 17 00:00:00 2001 From: moqsien Date: Mon, 18 Mar 2024 12:54:30 +0800 Subject: [PATCH] vscode fixed --- pkgs/versions/installers.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/versions/installers.go b/pkgs/versions/installers.go index 1d0359f..3c6f128 100644 --- a/pkgs/versions/installers.go +++ b/pkgs/versions/installers.go @@ -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 @@ -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 }