@mandors/cli 0.0.11 → 0.0.12
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
|
@@ -56,12 +56,12 @@ async function install(options = {}) {
|
|
|
56
56
|
* @returns {string|null} Path to binary or null if not bundled
|
|
57
57
|
*/
|
|
58
58
|
function useBundledBinary(platform, arch) {
|
|
59
|
-
const
|
|
60
|
-
const tarball = path.join(BUNDLE_DIR, `${
|
|
59
|
+
const osArch = `${platform}-${arch}`;
|
|
60
|
+
const tarball = path.join(BUNDLE_DIR, `${osArch}.tar.gz`);
|
|
61
61
|
const cacheDir = path.join(os.homedir(), '.mandor', 'bin');
|
|
62
|
-
const dest = path.join(cacheDir,
|
|
62
|
+
const dest = path.join(cacheDir, osArch);
|
|
63
63
|
|
|
64
|
-
console.log(`DEBUG: Looking for binary for ${
|
|
64
|
+
console.log(`DEBUG: Looking for binary for ${osArch}`);
|
|
65
65
|
console.log(`DEBUG: BUNDLE_DIR: ${BUNDLE_DIR}`);
|
|
66
66
|
console.log(`DEBUG: Files in BUNDLE_DIR: ${fs.readdirSync(BUNDLE_DIR).join(', ')}`);
|
|
67
67
|
|