build: align window mac names with community norms

This commit is contained in:
sithlord48
2024-11-01 16:48:22 -04:00
parent ddf6450486
commit 170b4251f3
3 changed files with 21 additions and 20 deletions

View File

@ -84,17 +84,14 @@ def get_filename_base(version, prefix):
# Some Windows users get confused by 'amd64' and think it's 'arm64',
# so we'll use Intel's 'x64' branding (even though it's wrong).
# Also replace 'x86_64' with 'x64' for consistency.
os_part= "win"
if machine == "amd64" or machine == "x86_64":
os_part = "win64"
machine = "x64"
elif os == "mac":
if machine == "amd64" or machine == "x86_64":
os_part = "mac_x64"
else:
os_part = "mac_arm64"
os_part = "macos"
# Add '-' between our name parts we do not want spaces in the filename
return f"{prefix}-{version}-{os_part}-{machine}"
# Underscore is used to delimit different parts of the filename (e.g. version, OS, etc).
# Dashes are used to delimit spaces, e.g. "debian-trixie" for "Debian Trixie".
return f"{prefix}-{version}_{os_part}"
def windows_package(filename_base, project_build_dir, dist_dir):