Skip to content

Commit

Permalink
Merge pull request #24 from tonlabs/0.23.0-major-bin-version
Browse files Browse the repository at this point in the history
NEW: use only major part of core version to download binaries
  • Loading branch information
joydark authored May 14, 2020
2 parents 490e633 + dff3a0f commit 0f3f80b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const http = require('http');
const zlib = require('zlib');
const {version, binaries_version} = require('./package.json');

const v = version.split('.');
const binariesVersion = binaries_version || `${v[0]}.${v[1]}.${~~(Number.parseInt(v[2]) / 100) * 100}`;
const bv = binariesVersion.split('.').join('_');
const bv = (binaries_version || version).split('.')[0];

const root = process.cwd();
const binariesHost = 'sdkbinaries-ws.tonlabs.io';
Expand Down

0 comments on commit 0f3f80b

Please sign in to comment.