mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-05-25 01:52:45 +00:00
- TagVariants now applies confVariants from releases.conf as case-folded substring matches before package-specific logic, removing the need to hardcode simple variant names in Go - gitea: variants = gogit (excludes Windows gogit builds) - lsd: variants = msvc (moved from Go to conf) - pwsh: variants = fxdependent fxdependentWinDesktop appimage - bun: variants = profile (moved from Go to conf) - sttr: darwin_all tagged as universal2 so arm64 and amd64 Mac users are served; pkg.tar.zst excluded (Arch Linux package format) - add .claude/ to .gitignore
22 lines
582 B
Go
22 lines
582 B
Go
// Package sttr provides variant tagging for sttr releases.
|
|
//
|
|
// sttr_Darwin_all.tar.gz is the only macOS release — a universal binary
|
|
// with no arch token. Mark it universal2 so expandUniversal serves it
|
|
// to both arm64 and amd64 Mac users.
|
|
package sttrdist
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/webinstall/webi-installers/internal/storage"
|
|
)
|
|
|
|
// TagVariants tags sttr-specific build variants.
|
|
func TagVariants(assets []storage.Asset) {
|
|
for i := range assets {
|
|
if strings.Contains(strings.ToLower(assets[i].Filename), "darwin_all") {
|
|
assets[i].Arch = "universal2"
|
|
}
|
|
}
|
|
}
|