File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ module.exports = function install() {
2424 // cleaning up
2525 return Promise . resolve ( ) ;
2626 }
27+ if ( buildFlags . isElectron ) {
28+ // If we're building for electron, we're unable to require things so we should
29+ // just assume success, unfortunately.
30+ return Promise . resolve ( ) ;
31+ }
2732
2833 return exec ( "node " + path . join ( rootPath , "dist/nodegit.js" ) )
2934 . catch ( function ( e ) {
Original file line number Diff line number Diff line change 1111}
1212
1313module . exports = {
14- debugBuild : process . env . BUILD_DEBUG ,
14+ debugBuild : ! ! process . env . BUILD_DEBUG ,
15+ isElectron : process . env . npm_config_runtime === "electron" ,
1516 isGitRepo : isGitRepo ,
16- mustBuild : isGitRepo || process . env . BUILD_DEBUG || process . env . BUILD_ONLY ,
17+ mustBuild : ! ! ( isGitRepo || process . env . BUILD_DEBUG || process . env . BUILD_ONLY )
1718} ;
You can’t perform that action at this time.
0 commit comments