Skip to content

Commit

Permalink
possibly fix iss with x64 and path selection
Browse files Browse the repository at this point in the history
  • Loading branch information
nullivex committed Oct 20, 2015
1 parent 5a66fd9 commit dafde2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ var n = new nodist(
distUrl,
iojsDistUrl,
nodistPrefix,
//replace https for http, nodejs.org/dist doesnt support https
proxy.replace('https://', 'http://'),
proxy,
wantX64,
envVersion
);
Expand Down
6 changes: 3 additions & 3 deletions lib/nodist.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ module.exports = nodist = function nodist(
wantX64,
envVersion
){
this.wantX64 = wantX64;
this.wantX64 = !!wantX64;
this.sourceUrl = sourceUrl;
this.iojsSourceUrl = iojsSourceUrl;
this.nodistDir = nodistDir;
this.sourceDir = nodistDir+'\\'+(this.wantX64? 'v-x64': 'v');
this.sourceDir = path.resolve(nodistDir + '/' + (this.wantX64? 'v-x64': 'v'));
this.proxy = proxy;
this.envVersion = envVersion;
this.installedCache = null;
Expand All @@ -82,7 +82,7 @@ module.exports = nodist = function nodist(
* @param {boolean} wantX64
*/
nodist.prototype.setWantX64 = function(wantX64) {
this.wantX64 = wantX64;
this.wantX64 = !!wantX64;
};


Expand Down

0 comments on commit dafde2b

Please sign in to comment.