Skip to content

Commit

Permalink
Merge pull request #62 from valory-xyz/release/v0.1.0-rc6
Browse files Browse the repository at this point in the history
Release `v0.1.0 rc6`
  • Loading branch information
angrybayblade authored Apr 19, 2024
2 parents 960d8aa + 5c0c1c7 commit f38ece2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions electron/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const process = require('process');
const { spawnSync } = require('child_process');
const Docker = require('dockerode');

const Version = "0.1.0-rc5"
const Version = "0.1.0rc6"
const OperateDirectory = `${os.homedir()}/.operate`;
const VenvDir = `${OperateDirectory}/venv`;
const VersionFile = `${OperateDirectory}/version.txt`;
Expand Down Expand Up @@ -147,15 +147,15 @@ function createVirtualEnvUbuntu(path) {
function installOperatePackageUnix(path) {
return runCmdUnix(
`${path}/venv/bin/python3.10`,
['-m', 'pip', 'install', 'olas-operate-middleware==0.1.0rc5']
['-m', 'pip', 'install', `olas-operate-middleware==${Version}`]
)
}

function reInstallOperatePackageUnix(path) {
console.log(appendLog("Reinstalling operate CLI"))
return runCmdUnix(
`${path}/venv/bin/python3.10`,
['-m', 'pip', 'install', 'olas-operate-middleware==0.1.0rc5', '--force-reinstall']
['-m', 'pip', 'install', `olas-operate-middleware==${Version}`, '--force-reinstall']
)
}

Expand Down Expand Up @@ -199,11 +199,19 @@ function versionBumpRequired() {
}

function removeLogFile() {
fs.rmSync(LogFile)
if (fs.existsSync()) {
fs.rmSync(LogFile)
}
}

function removeInstallationLogFile() {
if (fs.existsSync(OperateInstallationLog)) {
fs.rmSync(OperateInstallationLog)
}
}

async function setupDarwin(ipcChannel) {
fs.rmSync(OperateInstallationLog)
removeInstallationLogFile()
console.log(appendLog("Checking brew installation"))
if (!isBrewInstalled()) {
ipcChannel.send('response', 'Installing Operate Daemon')
Expand Down Expand Up @@ -256,7 +264,7 @@ async function setupDarwin(ipcChannel) {
}

async function setupUbuntu(ipcChannel) {
fs.rmSync(OperateInstallationLog)
removeInstallationLogFile()
console.log(appendLog("Checking docker installation"))
if (!isDockerInstalledUbuntu()) {
ipcChannel.send('response', 'Installing Operate Daemon')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@
"start": "electron .",
"build": "rm -rf dist/ && electron-builder build"
},
"version": "0.1.0-rc5"
"version": "0.1.0-rc6"
}
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-rc5"
version = "0.1.0-rc6"
description = ""
authors = ["David Vilela <[email protected]>", "Viraj Patel <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit f38ece2

Please sign in to comment.