Skip to content

Commit

Permalink
fix: Get the correct binary for Edge on M1 macs (#30)
Browse files Browse the repository at this point in the history
Backward compatibility at the OS level was saving us before this, but we
should get the more efficient binary that doesn't require any
translation/emulation.
  • Loading branch information
joeyparrish committed Aug 17, 2023
1 parent 1d17e40 commit b5303ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ class EdgeWebDriverInstaller extends WebDriverInstallerBase {
if (os.platform() == 'linux') {
platform = 'linux64';
} else if (os.platform() == 'darwin') {
platform = 'mac64';
if (process.arch == 'arm64') {
platform = 'mac64_m1';
} else {
platform = 'mac64';
}
} else if (os.platform() == 'win32') {
platform = 'win64';
} else {
Expand Down

0 comments on commit b5303ea

Please sign in to comment.