Skip to content

Commit

Permalink
fix: do not clone the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dvilelaf committed Mar 11, 2024
1 parent 51af489 commit 1abc076
Showing 1 changed file with 5 additions and 8 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`])
runCmdUnix(
`${path}/venv/bin/python3.10`,
['-m', 'pip', 'install', '--index-url', 'https://test.pypi.org/simple/', '--extra-index-url', 'https://pypi.org/simple/', 'operate==0.1.1']
)
}

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

0 comments on commit 1abc076

Please sign in to comment.