Skip to content

Commit

Permalink
added arm support for RPI
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodgonzalez committed Oct 9, 2017
1 parent ec28f71 commit 5d26a8d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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


Binary file added capture/bin/arm/scrot
Binary file not shown.
2 changes: 1 addition & 1 deletion capture/linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5d26a8d

Please sign in to comment.