Files
vim-ale/internal/releases/node/variants.go
AJ ONeal 631147901a feat: add Go release cache daemon (webicached)
Rewrites the Node.js release classification pipeline in Go. webicached
fetches upstream releases (GitHub, Gitea, GitLab, HashiCorp, custom
sources), classifies assets by OS/arch/variant, and writes legacy-format
JSON caches compatible with the existing webinstall.dev API.

Git-clone packages emit git_tag and git_commit_hash from real repo
clones — no fabricated refs.
2026-05-16 21:22:38 -06:00

21 lines
691 B
Go

package nodedist
import "github.com/webinstall/webi-installers/internal/storage"
// TagVariants tags node-specific build variants.
//
// The bare .exe is just node.exe without npm — too minimal to be useful.
// The .msi is a Windows GUI installer — webi uses the .zip instead.
// The .pkg is a macOS installer package — webi uses the .tar.gz instead.
// Both are tagged as "installer" so ExportLegacy drops them.
func TagVariants(assets []storage.Asset) {
for i := range assets {
switch assets[i].Format {
case ".exe":
assets[i].Variants = append(assets[i].Variants, "bare-exe")
case ".msi", ".pkg":
assets[i].Variants = append(assets[i].Variants, "installer")
}
}
}