Add the arm version of blhost and make getBlhostCmd() return architecture-specific blhost versions.

This commit is contained in:
László Monda
2017-12-13 14:32:21 +01:00
parent ccaf64612e
commit f8f1747ec9
4 changed files with 2 additions and 1 deletions

View File

@@ -21,7 +21,8 @@ function getBlhostCmd(pid) {
let blhostPath;
switch (process.platform) {
case 'linux':
blhostPath = 'linux/amd64/blhost';
const arch = exec('uname -m', {silent:true}).stdout.trim();
blhostPath = `linux/${arch}/blhost`;
break;
case 'darwin':
blhostPath = 'mac/blhost';