Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Fixed firefox detection on a Mac with M1 chip #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/webdrivermanager/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ def _parse_github_api_response(self, version, response):
if len(filename) > 1:
if self.os_name == "mac":
filename = (
[name for name in filenames if "aarch64" in name]
if mac_cpu_type == "arm"
else [name for name in filenames if "aarch64" not in name]
[name for name in filenames if "aarch64" in name and "macos" in name]
if mac_cpu_type == "arm" or mac_cpu_type == "m1"
else [name for name in filenames if "aarch64" not in name and "macos" in name]
)
else:
filename = [name for name in filenames if self.os_name + self.bitness in name and not name.endswith(".asc")]
Expand Down