mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-05-19 15:16:36 +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
492 B
Go
17 lines
492 B
Go
package flutterdist
|
|
|
|
import "github.com/webinstall/webi-installers/internal/storage"
|
|
|
|
// TagVariants handles flutter-specific arch defaults.
|
|
//
|
|
// Flutter's naming convention: flutter_{os}_{version} for x86_64 builds,
|
|
// flutter_{os}_arm64_{version} for arm64. The absence of an arch token
|
|
// means x86_64 — arm64 is always explicit.
|
|
func TagVariants(assets []storage.Asset) {
|
|
for i := range assets {
|
|
if assets[i].Arch == "" && assets[i].OS != "" {
|
|
assets[i].Arch = "x86_64"
|
|
}
|
|
}
|
|
}
|