Skip to content

Commit 0f7bdd5

Browse files
committed
feat: staging release
1 parent 15760e0 commit 0f7bdd5

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

electron/install.js

+18-22
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ const process = require('process');
66
const axios = require('axios');
77
const { spawnSync } = require('child_process');
88
const { logger } = require('./logger');
9-
const { execSync} = require('child_process');
9+
const { execSync } = require('child_process');
1010
const { paths } = require('./constants');
1111
const homedir = os.homedir();
1212
/**
1313
* current version of the pearl release
1414
* - use "" (nothing as a suffix) for latest release candidate, for example "0.1.0rc26"
1515
* - use "alpha" for alpha release, for example "0.1.0rc26-alpha"
1616
*/
17-
const OlasMiddlewareVersion = '0.1.0rc143';
17+
const OlasMiddlewareVersion = '0.1.0rc145';
1818

1919
const path = require('path');
2020
const { app } = require('electron');
@@ -55,18 +55,16 @@ const TendermintUrls = {
5555
},
5656
};
5757

58-
5958
function execSyncExitCode(cmd) {
6059
try {
6160
execSync(cmd);
6261
return 0;
63-
}
64-
catch (error) {
65-
logger.electron(error.status); // Might be 127 in your example.
62+
} catch (error) {
63+
logger.electron(error.status); // Might be 127 in your example.
6664
logger.electron(error.message); // Holds the message you typically want.
67-
logger.electron(error.stderr.toString()); // Holds the stderr output. Use `.toString()`.
68-
logger.electron(error.stdout.toString()); // Holds the stdout output. Use `.toString()`.
69-
return error.status;
65+
logger.electron(error.stderr.toString()); // Holds the stderr output. Use `.toString()`.
66+
logger.electron(error.stdout.toString()); // Holds the stdout output. Use `.toString()`.
67+
return error.status;
7068
}
7169
}
7270

@@ -94,7 +92,6 @@ function runCmdUnix(command, options) {
9492
logger.electron(`===== stderr ===== \n${output.stderr}`);
9593
}
9694

97-
9895
function runSudoUnix(command, options) {
9996
let bin = getBinPath(command);
10097
if (!bin) {
@@ -132,7 +129,7 @@ function isTendermintInstalledUnix() {
132129
function isTendermintInstalledWindows() {
133130
return true;
134131
//always installed cause bundled in
135-
return execSyncExitCode('tendermint --help') === 0;
132+
return execSyncExitCode('tendermint --help') === 0;
136133
}
137134

138135
async function downloadFile(url, dest) {
@@ -171,24 +168,23 @@ async function installTendermintWindows() {
171168
logger.electron(`Installing tendermint binary`);
172169
try {
173170
execSync('tar -xvf tendermint.tar.gz');
174-
} catch (error){
175-
logger.electron(error.status); // Might be 127 in your example.
171+
} catch (error) {
172+
logger.electron(error.status); // Might be 127 in your example.
176173
logger.electron(error.message); // Holds the message you typically want.
177-
logger.electron(error.stderr.toString()); // Holds the stderr output. Use `.toString()`.
178-
logger.electron(error.stdout.toString()); // Holds the stdout output. Use `.toString()`.
174+
logger.electron(error.stderr.toString()); // Holds the stderr output. Use `.toString()`.
175+
logger.electron(error.stdout.toString()); // Holds the stdout output. Use `.toString()`.
179176
}
180177

181-
const bin_dir = homedir + "//AppData//Local//Microsoft//WindowsApps//"
178+
const bin_dir = homedir + '//AppData//Local//Microsoft//WindowsApps//';
182179
if (!Env.CI) {
183180
if (!fs.existsSync(bin_dir)) {
184-
fs.mkdirSync(bin_dir, {recursive: true});
181+
fs.mkdirSync(bin_dir, { recursive: true });
185182
}
186-
fs.copyFileSync("tendermint.exe", bin_dir + "tendermint.exe");
183+
fs.copyFileSync('tendermint.exe', bin_dir + 'tendermint.exe');
187184
}
188185
process.chdir(cwd);
189186
}
190187

191-
192188
async function installTendermintUnix() {
193189
logger.electron(`Installing tendermint for ${os.platform()}-${process.arch}`);
194190
const cwd = process.cwd();
@@ -259,14 +255,14 @@ async function setupUbuntu(ipcChannel) {
259255
}
260256
}
261257

262-
263-
264258
async function setupWindows(ipcChannel) {
265259
logger.electron('Creating required directories');
266260
await createDirectory(`${paths.dotOperateDirectory}`);
267261
await createDirectory(`${paths.tempDir}`);
268262

269-
logger.electron('Checking tendermint installation: ' + isTendermintInstalledWindows());
263+
logger.electron(
264+
'Checking tendermint installation: ' + isTendermintInstalledWindows(),
265+
);
270266
if (!isTendermintInstalledWindows()) {
271267
ipcChannel.send('response', 'Installing tendermint');
272268
logger.electron('Installing tendermint');

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@
5858
"download-binaries": "sh download_binaries.sh",
5959
"build:pearl": "sh build_pearl.sh"
6060
},
61-
"version": "0.1.0-rc143"
61+
"version": "0.1.0-rc145"
6262
}

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "olas-operate-middleware"
3-
version = "0.1.0-rc143"
3+
version = "0.1.0-rc145"
44
description = ""
55
authors = ["David Vilela <[email protected]>", "Viraj Patel <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)