From fd4fbd8230d23a6689426aad4fcfe7e31f62ddd9 Mon Sep 17 00:00:00 2001 From: smahmed776 Date: Wed, 25 Oct 2023 20:23:19 +0100 Subject: [PATCH] refactor installation scripts [use develop branch temporarily] --- static/scripts/install.ps1 | 10 +++------- static/scripts/install.sh | 12 ++---------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/static/scripts/install.ps1 b/static/scripts/install.ps1 index 595afbf033..1df829d445 100644 --- a/static/scripts/install.ps1 +++ b/static/scripts/install.ps1 @@ -15,18 +15,14 @@ function cloneRepo { $repo, $location, $branch ) $gitURL = "https://github.com/$repo.git" - git clone --branch $branch --recurse-submodules $gitURL $location + git clone --branch $branch $gitURL $location Set-Location $location } info_msg "Cloning flojoy-ai/studio repo..." -cloneRepo "flojoy-ai/studio" "studio" "main" - -info_msg "Creating a python virtual environment..." - -& python -m venv venv +cloneRepo "flojoy-ai/studio" "studio" "develop" info_msg "Starting the project..." -& .\flojoy.ps1 -v venv +& .\flojoy.ps1 diff --git a/static/scripts/install.sh b/static/scripts/install.sh index 884a304968..e71b4498ec 100644 --- a/static/scripts/install.sh +++ b/static/scripts/install.sh @@ -10,18 +10,10 @@ info_msg() { info_msg "Cloning flojoy-ai/studio repo..." -git clone --branch main --recurse-submodules https://github.com/flojoy-ai/studio.git studio +git clone --branch develop https://github.com/flojoy-ai/studio.git studio cd studio -info_msg "Creating a python virtual environment..." - -python3 -m venv venv - -if [ $? -ne 0 ]; then - python -m venv venv -fi - info_msg "Starting the project..." -bash flojoy -v venv +bash flojoy