Skip to content

Commit 1c15e47

Browse files
yashdsarafCopilot
andcommitted
LOC-5083: Add support for Linux arm64 binary
Detect arm64 architecture via platform.machine() == 'aarch64' and download BrowserStackLocal-linux-arm64 binary. This check is placed before the generic is_64bits check to avoid arm64 falling through to the x64 path. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 19f31f9 commit 1c15e47

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

browserstack/local_binary.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def __init__(self, key, error_object=None):
2424
elif osname == 'Linux':
2525
if self.is_alpine():
2626
self.http_path = source_url + "BrowserStackLocal-alpine"
27+
elif platform.machine() == 'aarch64':
28+
self.http_path = source_url + "BrowserStackLocal-linux-arm64"
2729
else:
2830
if is_64bits:
2931
self.http_path = source_url + "BrowserStackLocal-linux-x64"

0 commit comments

Comments
 (0)