fixing paths and packages for Debian and Arch

This commit is contained in:
2025-09-08 11:05:12 +08:00
committed by Jason Ross
parent d8c69de34a
commit 523d65fbf7
2 changed files with 29 additions and 11 deletions
+14 -2
View File
@@ -165,8 +165,20 @@ def main():
is_ci_cd = os.environ.get("CI_CD", "false").lower() == "true"
if is_ci_cd:
print("CI/CD mode detected - building for all distributions")
selected_distros = [DistroType.DEBIAN, DistroType.ARCH, DistroType.RHEL]
distro_env = os.environ.get("DISTRO_TYPE", "").lower()
if distro_env == "debian":
selected_distros = [DistroType.DEBIAN]
print("CI/CD mode detected - building for Debian")
elif distro_env == "arch":
selected_distros = [DistroType.ARCH]
print("CI/CD mode detected - building for Arch")
elif distro_env == "rhel":
selected_distros = [DistroType.RHEL]
print("CI/CD mode detected - building for RHEL")
else:
print(f"Error: Invalid or missing DISTRO_TYPE environment variable: '{distro_env}'")
print("Valid values: debian, arch, rhel")
sys.exit(1)
else:
selected_distros = prompt_distro_selection()