@mandors/cli 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/npm/lib/install.js
CHANGED
|
@@ -57,7 +57,8 @@ async function install(options = {}) {
|
|
|
57
57
|
*/
|
|
58
58
|
function useBundledBinary(platform, arch) {
|
|
59
59
|
const filename = `mandor-${platform}-${arch}`;
|
|
60
|
-
|
|
60
|
+
// Tarball extracts to npm/binaries/ as just "mandor" (not in subdir)
|
|
61
|
+
const bundledBinary = path.join(BUNDLE_DIR, 'mandor');
|
|
61
62
|
|
|
62
63
|
console.log(`DEBUG: Looking for binary for ${platform}-${arch}`);
|
|
63
64
|
console.log(`DEBUG: BUNDLE_DIR: ${BUNDLE_DIR}`);
|
|
@@ -68,11 +69,6 @@ function useBundledBinary(platform, arch) {
|
|
|
68
69
|
return null;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
|
-
if (!fs.statSync(bundledBinary).isFile()) {
|
|
72
|
-
console.log(`DEBUG: ${bundledBinary} is not a file`);
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
72
|
console.log(`DEBUG: Found bundled binary: ${bundledBinary}`);
|
|
77
73
|
|
|
78
74
|
const cacheDir = path.join(os.homedir(), '.mandor', 'bin');
|