build: align window mac names with community norms
This commit is contained in:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user