Skip to content

Commit

Permalink
support for 64bit arch
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Paixao authored and Pedro Paixao committed Jun 23, 2016
1 parent 6e062f2 commit 77d4f60
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,18 @@ function doDownloads(next) {
console.log('Download libsodium.lib');
var ver = getPlatformToolsVersion();
console.log('Platform Tool is ' + ver);
var libURL = baseURL + '/Win32/Release/' + ver + '/dynamic';
var arch = os.arch() == 'x64'? 'x64' : 'Win32';
switch(os.arch()) {
case 'x64':
arch = 'x64';
break;
case 'ia32':
arch = 'Win32';
break;
default:
throw new Error('No pre-compiled binary available for this platform ' + os.arch());
}
var libURL = baseURL + '/' + arch + '/Release/' + ver + '/dynamic';
files = libFiles.slice(0); // clone array
downloadAll(files, libURL, 'deps/build/lib', function() {
console.log('Libs for version ' + ver + ' downloaded.');
Expand Down

0 comments on commit 77d4f60

Please sign in to comment.