From 5ea63ca9025b10e2511478b73e4fdad4b2e9e405 Mon Sep 17 00:00:00 2001 From: dongyuanjushi Date: Mon, 25 Nov 2024 06:52:09 -0500 Subject: [PATCH] update installation --- install/install.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/install/install.sh b/install/install.sh index acba33cf..4d6b7070 100644 --- a/install/install.sh +++ b/install/install.sh @@ -3,15 +3,19 @@ # Installation directory INSTALL_DIR="$HOME/.aios" REPO_URL="https://github.com/agiresearch/AIOS" -BRANCH="v.20" +TAG="v0.2.0.beta" # Replace with your specific tag echo "Installing AIOS..." # Create installation directory mkdir -p "$INSTALL_DIR" -# Clone specific branch -git clone -b "$BRANCH" "$REPO_URL" "$INSTALL_DIR/src" +# Clone the repository +git clone "$REPO_URL" "$INSTALL_DIR/src" + +# Checkout the specific tag +cd "$INSTALL_DIR/src" +git checkout tags/"$TAG" -b "$TAG-branch" # Create virtual environment python3 -m venv "$INSTALL_DIR/venv" @@ -242,4 +246,4 @@ echo " - 'aios env' to view current environment variables" echo " - 'aios clean' to remove AIOS installation" echo "" echo "To modify environment variables, edit: $INSTALL_DIR/.env" -echo "The server will automatically restart when environment variables change" \ No newline at end of file +echo "The server will automatically restart when environment variables change"