fix(firefox): fix executablePath() on OSX (#4105)

OSX might have case-sensitive partitions, so make sure we're precise.

Fix #4102
This commit is contained in:
Andrey Lushnikov 2019-03-04 14:19:28 -08:00 committed by GitHub
parent c9f6a3d064
commit bc28f3b3dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ class BrowserFetcher {
throw new Error('Unsupported platform: ' + this._platform);
} else if (this._product === 'firefox') {
if (this._platform === 'mac')
executablePath = path.join(folderPath, 'firefox', 'Nightly.app', 'Contents', 'MacOS', 'Firefox');
executablePath = path.join(folderPath, 'firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox');
else if (this._platform === 'linux')
executablePath = path.join(folderPath, 'firefox', 'firefox');
else if (this._platform === 'win32' || this._platform === 'win64')