Skip to content

Commit

Permalink
Better logging in postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
beele committed May 12, 2020
1 parent 8961c9a commit 3e7e48e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ const exec = require('child_process').exec;
switch (process.arch) {
case 'arm':
case 'arm64':
console.log('ARM/ARM64 architecture, tfjs-lib not precompiled, downloading external precompiled lib!');
fixTensorFlowForArm();
break;
case 'x32':
case 'x64':
console.log('Supported architecture, no actions required!');
break;
default:
console.error('Unsupported processor architecture!');
console.error('Unsupported processor architecture: ' + process.arch);
}

function fixTensorFlowForArm() {
Expand Down

0 comments on commit 3e7e48e

Please sign in to comment.