Skip to content

Commit

Permalink
Merge pull request #35 from valory-xyz/fix/do-not-clone
Browse files Browse the repository at this point in the history
fix: do not clone the repo
  • Loading branch information
dvilelaf authored Mar 12, 2024
2 parents 51af489 + c444ac5 commit 24d6402
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
13 changes: 5 additions & 8 deletions electron/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function isGitInstalledUbuntu() {
}

function installPythonUbuntu() {
return runSudoUnix('apt', 'install -y python3.10 python3.10-dev');
return runSudoUnix('apt', 'install -y python3.10 python3.10-dev python3-pip');
}

function installGitUbuntu() {
Expand All @@ -119,12 +119,11 @@ function createVirtualEnvUbuntu(path) {
return runCmdUnix('python3.10', ['-m', 'venv', path]);
}

function cloneRepositoryUnix() {
runCmdUnix('git', ['clone', '[email protected]:valory-xyz/olas-operate-app'])
}

function installOperatePackageUnix(path) {
runCmdUnix(`${path}/venv/bin/python3.10`, ['-m', 'pip', 'install', `${path}/temp/olas-operate-app`])
return runCmdUnix(
`${path}/venv/bin/python3.10`,
['-m', 'pip', 'install', 'olas-operate-middleware==0.1.0rc0']
)
}

function installOperateCliDarwin(path) {
Expand Down Expand Up @@ -191,7 +190,6 @@ async function setupDarwin() {

console.log("Installing operate backend")
process.chdir(`${OperateDirectory}/temp`)
cloneRepositoryUnix()
installOperatePackageUnix(OperateDirectory)

console.log("Installing operate CLI")
Expand Down Expand Up @@ -228,7 +226,6 @@ async function setupUbuntu() {

console.log("Installing operate backend")
process.chdir(`${OperateDirectory}/temp`)
cloneRepositoryUnix()
installOperatePackageUnix(OperateDirectory)

console.log("Installing operate CLI")
Expand Down
8 changes: 4 additions & 4 deletions frontend/hooks/useMasterWallet.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from 'react';
import { useAppInfo } from '.';
import EthersService from '@/service/Ethers';
import { useEffect, useState } from "react";
import { useAppInfo } from ".";
import { EthersService } from "@/service/Ethers";

type useMasterWalletProps = {
rpc: string;
Expand All @@ -9,7 +9,7 @@ type useMasterWalletProps = {
export const useMasterWallet = ({ rpc }: useMasterWalletProps) => {
const { userPublicKey } = useAppInfo();
const [nativeBalance, setNativeBalance] = useState<number | undefined>(
undefined,
undefined
);

useEffect(() => {
Expand Down

0 comments on commit 24d6402

Please sign in to comment.