Skip to content

Commit 6d67463

Browse files
vivianludrickclaude
andcommitted
LOC-7291: download darwin-arm64 binary on Apple Silicon
On macOS the binding now selects BrowserStackLocal-darwin-arm64 when the runtime reports arm64 (same runtime-arch detection the linux-arm64 path already uses); x64 runtimes (including x64-under-Rosetta) keep BrowserStackLocal-darwin-x64, preserving current behavior. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 6cbae0e commit 6d67463

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

browserstack/local_binary.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ def __init__(self, key, error_object=None):
2121
source_url = self.fetch_source_url() + '/'
2222

2323
if osname == 'Darwin':
24-
self.http_path = source_url + "BrowserStackLocal-darwin-x64"
24+
if platform.machine() in ('arm64', 'aarch64'):
25+
self.http_path = source_url + "BrowserStackLocal-darwin-arm64"
26+
else:
27+
self.http_path = source_url + "BrowserStackLocal-darwin-x64"
2528
elif osname == 'Linux':
2629
if self.is_alpine():
2730
self.http_path = source_url + "BrowserStackLocal-alpine"

0 commit comments

Comments
 (0)