-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support fetching and launching on Apple M1
- Loading branch information
1 parent
50b810d
commit 9a8479a
Showing
2 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,12 +104,14 @@ class ChromeLauncher implements ProductLauncher { | |
} | ||
|
||
let chromeExecutable = executablePath; | ||
if (os.arch() === 'arm64') { | ||
chromeExecutable = '/usr/bin/chromium-browser'; | ||
} else if (!executablePath) { | ||
const { missingText, executablePath } = resolveExecutablePath(this); | ||
if (missingText) throw new Error(missingText); | ||
chromeExecutable = executablePath; | ||
if (!executablePath) { | ||
if (os.arch() === 'arm64') { | ||
chromeExecutable = '/usr/bin/chromium-browser'; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Lxstr
|
||
} else { | ||
const { missingText, executablePath } = resolveExecutablePath(this); | ||
if (missingText) throw new Error(missingText); | ||
chromeExecutable = executablePath; | ||
} | ||
} | ||
|
||
const usePipe = chromeArguments.includes('--remote-debugging-pipe'); | ||
|
See #6641
This incorrectly assumes the location of Chromium.
/usr/bin
is discouraged as of Big Sur and in a default installation is not permitted to be used, even assudo
user.