Skip to content

Commit

Permalink
update filters
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Mar 5, 2024
1 parent a53c029 commit a684ce4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pkgs/versions/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ func filterByUrl(dUrl string) bool {
".txt",
".d.ts",
"src.tar.gz",
"-baseline.zip", // for bun
"-profile.zip", // for bun
"denort-", // for deno
"-unknown-linux-musl.tar.gz", // for fd.
"-baseline.zip", // for bun
"-profile.zip", // for bun
"denort-", // for deno
// "-unknown-linux-musl.tar.gz", // for fd.
"-pc-windows-gnu.zip", // for fd.
"linux-gnueabihf", // for fd
"linux-musleabihf", // for fd
Expand Down
7 changes: 3 additions & 4 deletions pkgs/versions/nodejs.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,13 @@ func (n *Nodejs) getVersion(vItem *Item) {
// os.WriteFile("test.txt", []byte(content), os.ModePerm)

for _, line := range strings.Split(content, "\n") {
if strings.Contains(line, "/node_pdb.zip") {
continue
}
if strings.Contains(line, ".tar.gz") || strings.Contains(line, ".zip") {
uList := strings.Split(strings.TrimSpace(line), " ")
if len(uList) >= 2 {
fName := strings.TrimSpace(uList[len(uList)-1])
// filter
if strings.Contains(fName, "node_pdb.zip") {
continue
}
archStr := utils.ParseArch(fName)
osStr := utils.ParsePlatform(fName)
if archStr != "" && osStr != "" {
Expand Down

0 comments on commit a684ce4

Please sign in to comment.