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