UNPKG

1.72 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.getLinuxToolsPath = getLinuxToolsPath;
7exports.prefetchBuildTools = prefetchBuildTools;
8exports.fpmPath = void 0;
9
10function _binDownload() {
11 const data = require("builder-util/out/binDownload");
12
13 _binDownload = function () {
14 return data;
15 };
16
17 return data;
18}
19
20function _lazyVal() {
21 const data = require("lazy-val");
22
23 _lazyVal = function () {
24 return data;
25 };
26
27 return data;
28}
29
30var path = _interopRequireWildcard(require("path"));
31
32function _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
34function getLinuxToolsPath() {
35 //noinspection SpellCheckingInspection
36 return (0, _binDownload().getBinFromGithub)("linux-tools", "mac-10.12.3", "SQ8fqIRVXuQVWnVgaMTDWyf2TLAJjJYw3tRSqQJECmgF6qdM7Kogfa6KD49RbGzzMYIFca9Uw3MdsxzOPRWcYw==");
37}
38
39const 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}); // noinspection JSUnusedGlobalSymbols
46
47exports.fpmPath = fpmPath;
48
49function prefetchBuildTools() {
50 // yes, we starting to use native Promise
51 return fpmPath.value;
52}
53//# sourceMappingURL=tools.js.map
\No newline at end of file