Skip to content

Commit

Permalink
allow external node_modules for windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
d11e9 committed Sep 24, 2015
1 parent 6e8e1bd commit 74b477e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(grunt) {
credits: './app/Credits.html',
macIcns: './app/images/logo.icns', // Path to the Mac icon file
winIco: './app/images/logo.ico',
platforms: ['win'] // These are the platforms that we want to build
platforms: ['win', 'osx'] // These are the platforms that we want to build
},
src: ['**/**', '!**/dist/**', '!**/cache/**', '!**/installer/**', '!**/node_modules/grunt*/**', '!**/node_modules/nw*/**', '!**/Gruntfile.js']
},
Expand Down
2 changes: 1 addition & 1 deletion app/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var path = require('path')
var execPath = function (package) {
if (process.platform !== 'darwin' && process.execPath.indexOf('node_modules') === -1 )
return path.join( process.execPath, '../', package );
return path.join( process.execPath, '../node_modules', package );
else return package;
}

Expand Down
2 changes: 1 addition & 1 deletion app/js/settings.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var path = require('path')
var execPath = function (package) {
if (process.platform !== 'darwin' && process.execPath.indexOf('node_modules') === -1 )
return path.join( process.execPath, '../', package );
return path.join( process.execPath, '../node_modules', package );
else return package;
}

Expand Down

0 comments on commit 74b477e

Please sign in to comment.