Skip to content

Commit

Permalink
release: rc51
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Jun 18, 2024
1 parent abe7912 commit a7789af
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
with:
node-version: "20.11"
- name: Download binary
run: mkdir electron/bins && curl -L -o electron/bins/pearl https://tempfileserver.staging.autonolas.tech/pearl && chmod +x electron/bins/pearl
run: mkdir electron/bins && curl -L -o electron/bins/pearl_arm64 https://tempfileserver.staging.autonolas.tech/pearl_arm64 && chmod +x electron/bins/pearl_arm64
- uses: snok/install-poetry@v1
with:
version: "1.7.1"
Expand Down
106 changes: 53 additions & 53 deletions electron/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const { BrewScript } = require('./scripts');
* - use "" (nothing as a suffix) for latest release candidate, for example "0.1.0rc26"
* - use "alpha" for alpha release, for example "0.1.0rc26-alpha"
*/
const OlasMiddlewareVersion = '0.1.0rc50';
const OlasMiddlewareVersion = '0.1.0rc51';
const OperateDirectory = `${os.homedir()}/.operate`;
const VenvDir = `${OperateDirectory}/venv`;
const TempDir = `${OperateDirectory}/temp`;
const VersionFile = `${OperateDirectory}/version.txt`;
const LogFile = `${OperateDirectory}/logs.txt`;
const OperateInstallationLog = `${os.homedir()}/operate.log`;
const OperateCmd = `${__dirname}/bins/pearl`;
const OperateCmd = `${__dirname}/bins/pearl_${process.arch}`;
const Env = {
...process.env,
PATH: `${process.env.PATH}:/opt/homebrew/bin:/usr/local/bin`,
Expand Down Expand Up @@ -336,57 +336,57 @@ function removeInstallationLogFile() {
/*******************************/

async function setupDarwin(ipcChannel) {
removeInstallationLogFile();
console.log(appendLog('Checking brew installation'));
if (!isBrewInstalled()) {
ipcChannel.send('response', 'Installing Pearl Daemon');
console.log(appendLog('Installing brew'));
await installBrew();
}

console.log(appendLog('Checking python installation'));
if (!isPythonInstalledDarwin()) {
ipcChannel.send('response', 'Installing Pearl Daemon');
console.log(appendLog('Installing python'));
installPythonDarwin();
}

console.log(appendLog('Creating required directories'));
await createDirectory(`${OperateDirectory}`);
await createDirectory(`${OperateDirectory}/temp`);

console.log(appendLog('Checking tendermint installation'));
if (!isTendermintInstalledUnix()) {
ipcChannel.send('response', 'Installing Pearl Daemon');
console.log(appendLog('Installing tendermint'));
await installTendermintUnix();
}

if (!fs.existsSync(VenvDir)) {
ipcChannel.send('response', 'Installing Pearl Daemon');
console.log(appendLog('Creating virtual environment'));
createVirtualEnvUnix(VenvDir);

console.log(appendLog('Installing pearl backend'));
installOperatePackageUnix(OperateDirectory);
}

console.log(appendLog('Checking if upgrade is required'));
if (versionBumpRequired()) {
console.log(
appendLog(`Upgrading pearl daemon to ${OlasMiddlewareVersion}`),
);
reInstallOperatePackageUnix(OperateDirectory);
writeVersion();
removeLogFile();
}

if (!fs.existsSync(`${OperateDirectory}/venv/bin/operate`)) {
reInstallOperatePackageUnix(OperateDirectory);
}

console.log(appendLog('Installing pearl CLI'));
await installOperateCli('/opt/homebrew/bin/operate');
// removeInstallationLogFile();
// console.log(appendLog('Checking brew installation'));
// if (!isBrewInstalled()) {
// ipcChannel.send('response', 'Installing Pearl Daemon');
// console.log(appendLog('Installing brew'));
// await installBrew();
// }
//
// console.log(appendLog('Checking python installation'));
// if (!isPythonInstalledDarwin()) {
// ipcChannel.send('response', 'Installing Pearl Daemon');
// console.log(appendLog('Installing python'));
// installPythonDarwin();
// }
//
// console.log(appendLog('Creating required directories'));
// await createDirectory(`${OperateDirectory}`);
// await createDirectory(`${OperateDirectory}/temp`);
//
// console.log(appendLog('Checking tendermint installation'));
// if (!isTendermintInstalledUnix()) {
// ipcChannel.send('response', 'Installing Pearl Daemon');
// console.log(appendLog('Installing tendermint'));
// await installTendermintUnix();
// }
//
// if (!fs.existsSync(VenvDir)) {
// ipcChannel.send('response', 'Installing Pearl Daemon');
// console.log(appendLog('Creating virtual environment'));
// createVirtualEnvUnix(VenvDir);
//
// console.log(appendLog('Installing pearl backend'));
// installOperatePackageUnix(OperateDirectory);
// }
//
// console.log(appendLog('Checking if upgrade is required'));
// if (versionBumpRequired()) {
// console.log(
// appendLog(`Upgrading pearl daemon to ${OlasMiddlewareVersion}`),
// );
// reInstallOperatePackageUnix(OperateDirectory);
// writeVersion();
// removeLogFile();
// }
//
// if (!fs.existsSync(`${OperateDirectory}/venv/bin/operate`)) {
// reInstallOperatePackageUnix(OperateDirectory);
// }
//
// console.log(appendLog('Installing pearl CLI'));
// await installOperateCli('/opt/homebrew/bin/operate');
}

// TODO: Add Tendermint installation
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "electron/main.js",
"name": "olas-operate-app",
"productName": "Pearl",
"version": "0.1.0-rc50",
"version": "0.1.0-rc51",
"dependencies": {
"@ant-design/cssinjs": "^1.18.4",
"@ant-design/icons": "^5.3.0",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "olas-operate-middleware"
version = "0.1.0-rc49"
version = "0.1.0-rc51"
description = ""
authors = ["David Vilela <[email protected]>", "Viraj Patel <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit a7789af

Please sign in to comment.