1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.EXEC_TIMEOUT = undefined;
|
7 | exports.computeEnv = computeEnv;
|
8 | exports.computeToolEnv = computeToolEnv;
|
9 | exports.getLinuxToolsPath = getLinuxToolsPath;
|
10 |
|
11 | var _binDownload;
|
12 |
|
13 | function _load_binDownload() {
|
14 | return _binDownload = require("./binDownload");
|
15 | }
|
16 |
|
17 |
|
18 | const EXEC_TIMEOUT = exports.EXEC_TIMEOUT = { timeout: 120 * 1000 };
|
19 | function computeEnv(oldValue, newValues) {
|
20 | const parsedOldValue = oldValue ? oldValue.split(":") : [];
|
21 | return newValues.concat(parsedOldValue).filter(it => it.length > 0).join(":");
|
22 | }
|
23 | function computeToolEnv(libPath) {
|
24 |
|
25 | return Object.assign({}, process.env, { DYLD_LIBRARY_PATH: computeEnv(process.env.DYLD_LIBRARY_PATH, libPath) });
|
26 | }
|
27 | function getLinuxToolsPath() {
|
28 |
|
29 | return (0, (_binDownload || _load_binDownload()).getBinFromGithub)("linux-tools", "mac-10.12.2", "i+D1SGCPSKNuR4wZd/lpiW5l1emfX1MgkNwESqOXKgh5SpN3TNV9oi0W6zD9fEDwCBJaMYsZJtSjulh16TzKEA==");
|
30 | }
|
31 |
|
\ | No newline at end of file |