Skip to content

Commit

Permalink
Merge pull request #22 from tonlabs/0.23.0-rc
Browse files Browse the repository at this point in the history
Version 0.23.0
  • Loading branch information
diserere authored May 14, 2020
2 parents 2b65b2d + d5e5f6d commit 44bb573
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
7 changes: 2 additions & 5 deletions binaries.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@
* limitations under the License.
*/

const fs = require('fs');
const {version, binaries_version} = require('./package.json');
const path = require('path');
const os = require('os');

const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json')));
const p = os.platform();

const v = pkg.version.split('.');
const bv = `${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 };
2 changes: 1 addition & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function downloadAndGunzip(dest, url) {
async function dl(dst, src) {
const dst_path = `${root}/${dst}`;
const src_url = `http://${binariesHost}/${src}.gz`;
process.stdout.write(`Downloading ${dst} from ${binariesHost} ...`);
process.stdout.write(`Downloading ${dst} from ${src_url} ...`);
await downloadAndGunzip(dst_path, src_url);
process.stdout.write('\n');
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ton-client-react-native-js",
"version": "0.22.0",
"version": "0.23.0",
"binaries_version": "0.23.1",
"description": "TON Client Library for React Native",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 44bb573

Please sign in to comment.