getExecutablePath static method

String getExecutablePath(
  1. String revisionPath
)

Implementation

static String getExecutablePath(String revisionPath) {
  if (io.Platform.isWindows) {
    return p.join(revisionPath, 'chrome-win', 'chrome.exe');
  } else if (io.Platform.isLinux) {
    return p.join(revisionPath, 'chrome-linux', 'chrome');
  } else if (io.Platform.isMacOS) {
    return p.join(revisionPath, 'chrome-mac', 'Chromium.app', 'Contents',
        'MacOS', 'Chromium');
  } else {
    throw UnsupportedError('Unknown platform ${io.Platform.operatingSystem}');
  }
}