UNPKG

767 BJavaScriptView Raw
1/**
2 * Copyright (c) 2015-present, Facebook, Inc.
3 * This source code is licensed under the MIT license found in the
4 * LICENSE file in the root directory of this source tree.
5 */
6'use strict';
7
8var VERSION = require('./package.json').version;
9
10var path = require('path');
11
12module.exports =
13 process.platform === 'darwin'
14 ? path.join(__dirname, 'flow-osx-v' + VERSION, 'flow') :
15 process.platform === 'linux' && process.arch === 'x64'
16 ? path.join(__dirname, 'flow-linux64-v' + VERSION, 'flow') :
17 process.platform === 'linux' && process.arch === 'arm64'
18 ? path.join(__dirname, 'flow-linux-arm64-v' + VERSION, 'flow') :
19 process.platform === 'win32' && process.arch === 'x64'
20 ? path.join(__dirname, 'flow-win64-v' + VERSION, 'flow.exe') :
21 null;