Use all as architecture if architectures array contains it

This commit is contained in:
Elara 2022-09-28 13:03:44 -07:00
parent 4307278698
commit ae9e294bf5
1 changed files with 4 additions and 0 deletions

View File

@ -239,6 +239,10 @@ func buildPackage(ctx context.Context, script string, mgr manager.Manager) ([]st
setScripts(&vars, pkgInfo, filepath.Dir(script))
if slices.Contains(vars.Architectures, "all") {
pkgInfo.Arch = "all"
}
if pkgInfo.Arch == "arm" {
pkgInfo.Arch = checkARMVariant()
}