|
14 | 14 | # KIND, either express or implied. See the License for the |
15 | 15 | # specific language governing permissions and limitations |
16 | 16 | # under the License. |
| 17 | + |
17 | 18 | import json |
18 | 19 | import logging |
19 | 20 | import os |
@@ -77,14 +78,19 @@ def _get_binary() -> Path: |
77 | 78 | else: |
78 | 79 | allowed = { |
79 | 80 | ("darwin", "any"): "macos/selenium-manager", |
80 | | - ("win32", "any"): "windows/selenium-manager.exe", |
81 | | - ("cygwin", "any"): "windows/selenium-manager.exe", |
| 81 | + ("win32", "amd64"): "windows/selenium-manager.exe", |
| 82 | + ("win32", "arm64"): "windows/selenium-manager-arm64.exe", |
| 83 | + ("cygwin", "amd64"): "windows/selenium-manager.exe", |
| 84 | + ("cygwin", "arm64"): "windows/selenium-manager-arm64.exe", |
82 | 85 | ("linux", "x86_64"): "linux/selenium-manager", |
| 86 | + ("linux", "arm64"): "linux/selenium-manager-arm64", |
83 | 87 | ("freebsd", "x86_64"): "linux/selenium-manager", |
| 88 | + ("freebsd", "arm64"): "linux/selenium-manager-arm64", |
84 | 89 | ("openbsd", "x86_64"): "linux/selenium-manager", |
| 90 | + ("openbsd", "arm64"): "linux/selenium-manager-arm64", |
85 | 91 | } |
86 | 92 |
|
87 | | - arch = platform.machine() if sys.platform in ("linux", "freebsd", "openbsd") else "any" |
| 93 | + arch = "any" if sys.platform == "darwin" else platform.machine().lower() |
88 | 94 | if sys.platform in ["freebsd", "openbsd"]: |
89 | 95 | logger.warning("Selenium Manager binary may not be compatible with %s; verify settings", sys.platform) |
90 | 96 |
|
|
0 commit comments