Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Simplify latest version install script

f-trycua44914f1180bc
diff --git a/libs/lume/scripts/install.sh b/libs/lume/scripts/install.sh
index 80ff3ff8c5..66a4d0599d 100644
--- a/libs/lume/scripts/install.sh
+++ b/libs/lume/scripts/install.sh
@@ -62,26 +62,10 @@ create_temp_dir() {
# Download the latest release
download_release() {
- echo "Fetching latest release information..."
-
- # Try to get the latest version from GitHub API
- if command -v curl &> /dev/null; then
- RELEASE_INFO=$(curl -s "$LATEST_RELEASE_URL")
- VERSION=$(echo "$RELEASE_INFO" | grep -o '"tag_name": "v[^"]*"' | cut -d'"' -f4 | sed 's/^v//')
-
- if [ -z "$VERSION" ]; then
- echo "${RED}Failed to get latest version.${NORMAL} Using direct download link."
- # Try simpler URL with the non-versioned symlink
- DOWNLOAD_URL="https://github.com/$GITHUB_REPO/releases/latest/download/lume.tar.gz"
- else
- echo "Latest version: ${BOLD}$VERSION${NORMAL}"
- DOWNLOAD_URL="https://github.com/$GITHUB_REPO/releases/download/v$VERSION/lume.tar.gz"
- fi
- else
- echo "${RED}curl not found.${NORMAL} Using direct download link."
- DOWNLOAD_URL="https://github.com/$GITHUB_REPO/releases/latest/download/lume.tar.gz"
- fi
+ echo "Downloading latest Lume release..."
+ # Use the direct download link with the non-versioned symlink
+ DOWNLOAD_URL="https://github.com/$GITHUB_REPO/releases/latest/download/lume.tar.gz"
echo "Downloading from: $DOWNLOAD_URL"
# Download the tarball