Add path to adb in production env
Summary: Move from adding adb path in tracery plugin to adding flipper as a whole. Se discussion here: D16494684 Reviewed By: jknoxville Differential Revision: D16542414 fbshipit-source-id: abb2f4989693025a8bfe7d12f4c328870a962204
This commit is contained in:
committed by
Facebook Github Bot
parent
b1fd70a3c3
commit
0c37a93a84
@@ -16,9 +16,10 @@ module.exports = function(argv) {
|
|||||||
|
|
||||||
// emulator/emulator is more reliable than tools/emulator, so prefer it if
|
// emulator/emulator is more reliable than tools/emulator, so prefer it if
|
||||||
// it exists
|
// it exists
|
||||||
process.env.PATH = `${process.env.ANDROID_HOME}/emulator:${
|
process.env.PATH =
|
||||||
process.env.ANDROID_HOME
|
['emulator', 'tools', 'platform-tools']
|
||||||
}/tools:${process.env.PATH}`;
|
.map(directory => `${process.env.ANDROID_HOME}/${directory}`)
|
||||||
|
.join(':') + `:${process.env.PATH}`;
|
||||||
|
|
||||||
// ensure .flipper folder and config exist
|
// ensure .flipper folder and config exist
|
||||||
const flipperDir = path.join(os.homedir(), '.flipper');
|
const flipperDir = path.join(os.homedir(), '.flipper');
|
||||||
|
|||||||
Reference in New Issue
Block a user