@@ -71,11 +71,11 @@ function checkAndBuild() {
7171 }
7272 } )
7373 . then ( function ( ) {
74- return build ( nwVersion ) ;
74+ return build ( ) ;
7575 } ) ;
7676}
7777
78- function build ( nwVersion ) {
78+ function build ( ) {
7979 console . info ( "[nodegit] Everything is ready to go, attempting compilation" ) ;
8080 if ( nwVersion ) {
8181 console . info ( "[nodegit] Building native node-webkit module." ) ;
@@ -93,24 +93,25 @@ function build(nwVersion) {
9393 var target = "" ;
9494 var debug = ( process . env . BUILD_DEBUG ? " --debug" : "" ) ;
9595 var builder = "node-gyp" ;
96- var dist - url = "" ;
96+ var distUrl = "" ;
9797
9898 if ( asVersion ) {
99- prefix = process . platform == ' win32'
100- ? ' SET HOME="~/.atom-shell-gyp" &&s'
101- : ' HOME=~/.atom-shell-gyp' ;
99+ prefix = ( process . platform == " win32"
100+ ? " SET HOME=\ "~/.atom-shell-gyp\ " && "
101+ : " HOME=~/.atom-shell-gyp" ;
102102
103103 target = "--target=" + asVersion ;
104104
105- dist - url = "--dist-url=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist" ;
105+ distUrl = "--dist-url=https://gh-contractor-zcbenz.s3." +
106+ "amazonaws.com/atom-shell/dist" ;
106107 }
107108 else if ( nwVersion ) {
108109 builder = "nw-gyp" ;
109110 target = "--target=" + nwVersion ;
110111 }
111112
112113 builder = path . resolve ( "." , "node_modules" , ".bin" , builder ) ;
113- var cmd = [ prefix , builder , "rebuild" , target , disturl ] . join ( " " ) . trim ( ) ;
114+ var cmd = [ prefix , builder , "rebuild" , target , debug , distUrl ] . join ( " " ) . trim ( ) ;
114115
115116 return exec ( cmd , opts )
116117 . then ( function ( ) {
0 commit comments