mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-05-21 16:12:48 +00:00
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.
24 lines
613 B
Go
24 lines
613 B
Go
// Package lsd provides variant tagging for lsd (LSDeluxe) releases.
|
|
//
|
|
// lsd publishes .deb packages and windows-msvc builds alongside
|
|
// the standard archives.
|
|
package lsddist
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/webinstall/webi-installers/internal/storage"
|
|
)
|
|
|
|
// TagVariants tags lsd-specific build variants.
|
|
func TagVariants(assets []storage.Asset) {
|
|
for i := range assets {
|
|
if assets[i].Format == ".deb" {
|
|
assets[i].Variants = append(assets[i].Variants, "deb")
|
|
}
|
|
if strings.Contains(strings.ToLower(assets[i].Filename), "-msvc") {
|
|
assets[i].Variants = append(assets[i].Variants, "msvc")
|
|
}
|
|
}
|
|
}
|