1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.getLinuxToolsPath = getLinuxToolsPath;
|
7 | exports.prefetchBuildTools = prefetchBuildTools;
|
8 | exports.fpmPath = void 0;
|
9 |
|
10 | function _binDownload() {
|
11 | const data = require("builder-util/out/binDownload");
|
12 |
|
13 | _binDownload = function () {
|
14 | return data;
|
15 | };
|
16 |
|
17 | return data;
|
18 | }
|
19 |
|
20 | function _lazyVal() {
|
21 | const data = require("lazy-val");
|
22 |
|
23 | _lazyVal = function () {
|
24 | return data;
|
25 | };
|
26 |
|
27 | return data;
|
28 | }
|
29 |
|
30 | var path = _interopRequireWildcard(require("path"));
|
31 |
|
32 | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
33 |
|
34 | function getLinuxToolsPath() {
|
35 |
|
36 | return (0, _binDownload().getBinFromGithub)("linux-tools", "mac-10.12.3", "SQ8fqIRVXuQVWnVgaMTDWyf2TLAJjJYw3tRSqQJECmgF6qdM7Kogfa6KD49RbGzzMYIFca9Uw3MdsxzOPRWcYw==");
|
37 | }
|
38 |
|
39 | const fpmPath = new (_lazyVal().Lazy)(() => {
|
40 | if (process.platform === "win32" || process.env.USE_SYSTEM_FPM === "true") {
|
41 | return Promise.resolve("fpm");
|
42 | }
|
43 |
|
44 | return (0, _binDownload().getBin)("fpm", "fpm", null).then(it => path.join(it, "fpm"));
|
45 | });
|
46 |
|
47 | exports.fpmPath = fpmPath;
|
48 |
|
49 | function prefetchBuildTools() {
|
50 |
|
51 | return fpmPath.value;
|
52 | }
|
53 |
|
\ | No newline at end of file |