diff --git a/.gitignore b/.gitignore index cb4e535..7a56aae 100644 --- a/.gitignore +++ b/.gitignore @@ -27,5 +27,6 @@ build/Release # Dependency directory # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git node_modules +.idea diff --git a/capture/bin/arm/scrot b/capture/bin/arm/scrot new file mode 100755 index 0000000..df4f6fe Binary files /dev/null and b/capture/bin/arm/scrot differ diff --git a/capture/linux.js b/capture/linux.js index b4a9b67..1dda68e 100755 --- a/capture/linux.js +++ b/capture/linux.js @@ -4,7 +4,7 @@ module.exports = function(options, callback) { var childProcess = require('child_process'); var path = require('path'); - var scrot = childProcess.spawn(path.join(__dirname, "bin", "scrot", "scrot"), [options.output]); + var scrot = childProcess.spawn(path.join(__dirname, 'bin', process.arch !== 'arm' ? 'scrot' : 'arm', 'scrot'), [options.output]); scrot.on('close', function(code, signal) { try { fs.statSync(options.output);