File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,15 @@ var spawn = require('child_process').spawn;
33var path = require ( 'path' ) ;
44var fs = require ( 'fs' ) ;
55
6- var ZMQ = '4.2.0' ;
6+ var ZMQ ;
7+ var ZMQ_REPO ;
8+ if ( process . platform == 'linux' ) {
9+ ZMQ = '4.1.6' ;
10+ ZMQ_REPO = 'zeromq4-1' ;
11+ } else {
12+ ZMQ = '4.2.0' ;
13+ ZMQ_REPO = 'libzmq' ;
14+ }
715
816function buildZMQ ( scriptPath ) {
917 console . log ( 'Building libzmq for ' + process . platform ) ;
@@ -35,7 +43,7 @@ if (process.platform === 'win32') {
3543
3644} else {
3745 var SCRIPT_PATH = path . join ( __dirname , 'build_libzmq.sh' ) ;
38- var TAR_URL = 'https://github.com/zeromq/libzmq /releases/download/v' + ZMQ + '/zeromq-' + ZMQ + '.tar.gz' ;
46+ var TAR_URL = 'https://github.com/zeromq/' + ZMQ_REPO + ' /releases/download/v' + ZMQ + '/zeromq-' + ZMQ + '.tar.gz' ;
3947 var DIR = path . join ( __dirname , '..' , 'zmq' ) ;
4048 var FILE_NAME = path . join ( DIR , 'zeromq-' + ZMQ + '.tar.gz' ) ;
4149
You can’t perform that action at this time.
0 commit comments