Skip to content

Commit

Permalink
ci: Unify suffixes in release names the same way as before (#3535)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaminyam authored Jan 24, 2025
1 parent e3149c4 commit f615fa9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/get-platform-suffix.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
"i686": "x86", # Windows
}

platform_kernel = sys.platform
kernel_name_aliases = {
"linux": "linux",
"darwin": "macos",
"win32": "windows",
}

platform_kernel = kernel_name_aliases.get(sys.platform, sys.platform)
platform_arch = arch_name_aliases.get(platform.machine(), platform.machine())

print(f"{platform_kernel}-{platform_arch}")

0 comments on commit f615fa9

Please sign in to comment.