From dff3a0f9d6f05b8a296e99cff6aad5232791b6e7 Mon Sep 17 00:00:00 2001 From: Michael Vlasov Date: Thu, 14 May 2020 20:17:53 +0500 Subject: [PATCH] NEW: use only major part of core version to download binaries --- install.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install.js b/install.js index f32aff1..f331340 100644 --- a/install.js +++ b/install.js @@ -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';