Skip to content

Commit

Permalink
fix electron-rebuild args
Browse files Browse the repository at this point in the history
  • Loading branch information
zaggino committed Sep 16, 2016
1 parent b82054b commit 4c156e4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tasks/npm-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,19 @@ module.exports = function (grunt) {
// nothing done by npm, skip electron-rebuild
grunt.log.writeln("skipping electron-rebuild in " + where);
return callback(null);
}
grunt.log.writeln("running electron-rebuild in " + where);
}
var npmRebuildPath = path.resolve(
__dirname,
'..',
'node_modules',
'.bin',
process.platform === 'win32' ? 'electron-rebuild.cmd' : 'electron-rebuild'
);
spawn(npmRebuildPath, [], { cwd: './' + where }, function (err, stdout, stderr) {
var args = [
"-m=" + path.resolve(__dirname, '..', where)
];
grunt.log.writeln("running electron-rebuild " + args.join(" "));
spawn(npmRebuildPath, args, { cwd: './' + where }, function (err, stdout, stderr) {
if (err) {
if (stderr) {
grunt.log.error(stderr);
Expand Down

0 comments on commit 4c156e4

Please sign in to comment.