mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-05-24 17:42:55 +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.
17 lines
501 B
Go
17 lines
501 B
Go
package xzdist
|
|
|
|
import "github.com/webinstall/webi-installers/internal/storage"
|
|
|
|
// TagVariants handles xz-specific arch defaults.
|
|
//
|
|
// therootcompany/xz-static names builds xz-{version}-{os}-{arch} for
|
|
// Linux/macOS but xz-{version}-windows.zip for Windows (only amd64
|
|
// shipped). The arch token is absent only for the Windows build.
|
|
func TagVariants(assets []storage.Asset) {
|
|
for i := range assets {
|
|
if assets[i].Arch == "" && assets[i].OS == "windows" {
|
|
assets[i].Arch = "x86_64"
|
|
}
|
|
}
|
|
}
|