Skip to content

Commit

Permalink
Merge pull request #21 from tonlabs/0.23.0-major-bin-version
Browse files Browse the repository at this point in the history
NEW: use major core version to download binaries
  • Loading branch information
joydark authored May 14, 2020
2 parents 311ad71 + 93393bb commit d5e5f6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions binaries.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const path = require('path');
const os = require('os');
const p = os.platform();

const v = version.split('.');
const bv = (binaries_version || `${v[0]}.${v[1]}.${~~(Number.parseInt(v[2]) / 100) * 100}`).split('.').join('_');
const bv = (binaries_version || version).split('.')[0];
const bp = path.resolve(os.homedir(), '.tonlabs', 'binaries', bv);
module.exports = { p, bv, bp };

0 comments on commit d5e5f6d

Please sign in to comment.