in src/utils.ts [668:688]
async function findFlavorPath(browserPath: IBrowserPath | undefined) {
if (!browserPath) {
return '';
}
if (await fse.pathExists(browserPath.windows.primary) &&
(platform === 'Windows' || flavor === 'Default')) {
return browserPath.windows.primary;
} if (await fse.pathExists(browserPath.windows.secondary) &&
(platform === 'Windows' || flavor === 'Default')) {
return browserPath.windows.secondary;
} if (await fse.pathExists(browserPath.osx) &&
(platform === 'OSX' || flavor === 'Default')) {
return browserPath.osx;
} if (await fse.pathExists(browserPath.debianLinux) &&
(platform === 'Linux' || flavor === 'Default')) {
return browserPath.debianLinux;
}
return '';
}