Skip to content

Commit

Permalink
Merge pull request #124 from blocknetdx/1.0.1
Browse files Browse the repository at this point in the history
1.0.1
  • Loading branch information
rBurgett authored Mar 3, 2021
2 parents 3acf2bb + fbc4cbb commit 7c097dd
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 7 deletions.
6 changes: 3 additions & 3 deletions bin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"linux": "https://s3.us-east-2.amazonaws.com/devbuilds.blocknetprotocol.com/lw/cc-release-0.5.10-lin.zip",
"mac": "https://s3.us-east-2.amazonaws.com/devbuilds.blocknetprotocol.com/lw/cc-release-0.5.10-mac.zip",
"win": "https://s3.us-east-2.amazonaws.com/devbuilds.blocknetprotocol.com/lw/cc-release-0.5.10-win.zip"
"linux": "https://s3.us-east-1.amazonaws.com/cloudchainsinc.com/downloads/cc-release-0.5.11-linux.zip",
"mac": "https://s3.us-east-1.amazonaws.com/cloudchainsinc.com/downloads/cc-release-0.5.11-osx.zip",
"win": "https://s3.us-east-1.amazonaws.com/cloudchainsinc.com/downloads/cc-release-0.5.11-windows.zip"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xlite",
"version": "1.0.0",
"version": "1.0.1",
"description": "xlite",
"private": true,
"main": "./dist/server/index.js",
Expand Down
32 changes: 32 additions & 0 deletions shasums.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const fs = require('fs');
const path = require('path');
const { spawn } = require('child_process');

const { argv } = process;

const dir = argv[2];

(async function() {
try {
if(!dir || !fs.existsSync(dir) || !fs.statSync(dir).isDirectory())
console.error('You must pass in a path to a directory as the first argument.');
const files = fs.readdirSync(dir);
for(const file of files) {
const filePath = path.join(dir, file);
let str = '';
await new Promise(resolve => {
const instance = spawn('shasum', ['-a', '256', filePath]);
instance.on('close', () => {
resolve();
});
instance.stdout.on('data', data => {
str += data.toString('utf8');
});
});
str = str.match(/\w{64}/)[0];
console.log(str + ' ' + file);
}
} catch(err) {
console.error(err);
}
})();
6 changes: 3 additions & 3 deletions src/server/modules/cloudchains.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ class CloudChains {
let started = false;
let args;
if(mnemonic) { // Create a wallet from a previous mnemonic
args = ['--createwalletmnemonic'];
args = ['--xliterpc', '--createwalletmnemonic'];
} else { // Create a new wallet
args = ['--createdefaultwallet'];
args = ['--xliterpc', '--createdefaultwallet'];
}

// cloudchains daemon supports reading password/mnemonic from stdin. We
Expand Down Expand Up @@ -699,7 +699,7 @@ class CloudChains {
enableAllWallets() {
return new Promise(resolve => {
let started = false;
const cli = this._spawn(this.getCCSPVFilePath(), ['--enablerpcandconfigure'], {detached: false, windowsHide: true});
const cli = this._spawn(this.getCCSPVFilePath(), ['--xliterpc', '--enablerpcandconfigure'], {detached: false, windowsHide: true});
cli.stdout.on('data', data => {
const str = data.toString('utf8');
if(this._selectionPatt.test(str)) { // kill process when selection screen appears
Expand Down

0 comments on commit 7c097dd

Please sign in to comment.