Files
flipper/static
Arthur Kushka d2f9697deb Fixed PATH env variable for production bundle
Summary:
In my last plugin for React VR I used spawn heavily to call adb and python2. It worked out well, but after Flipper released, I noticed that all my spawn commands were broken.

I found that Electron start in different way when bundled as production bundle, and because of it, it does not inherit process.env.PATH in a same way as it do this for development mode. (only linux/mac issue)

In this diff I used npm package which detects linux/mac and executes bash command which returns all the env variables from the system. After it, it takes PATH and merge it with process.env.PATH.

Reviewed By: passy

Differential Revision: D16457847

fbshipit-source-id: 60226f2d7977f1dfec49de6e889f3115d8688991
2019-07-24 06:25:40 -07:00
..
2019-05-03 12:08:04 -07:00
2018-10-06 11:18:18 -07:00
2019-06-14 03:41:54 -07:00
2019-07-17 06:52:01 -07:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-12-07 08:06:07 -08:00
2018-06-01 11:03:58 +01:00
2019-05-03 12:08:04 -07:00
2019-07-10 12:06:39 -07:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-09-19 03:57:31 -07:00
2018-09-19 03:57:31 -07:00
2019-03-25 11:36:19 -07:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2019-04-05 08:07:15 -07:00
2019-05-04 11:16:23 -07:00