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.

Use caffeinate on macOS to prevent system sleep during the pull

Dillon DuPont6bbeac977734
diff --git a/scripts/playground-docker.sh b/scripts/playground-docker.sh
index 59687eb476..191878c582 100644
--- a/scripts/playground-docker.sh
+++ b/scripts/playground-docker.sh
@@ -246,7 +246,14 @@ if [[ "$USE_CLOUD" == "false" && "$COMPUTER_TYPE" == "macos" ]]; then
if [[ $CONTINUE =~ ^[Yy]$ ]]; then
print_info "Pulling macOS CUA image (this may take a while)..."
- lume pull macos-sequoia-cua:latest
+
+ # Use caffeinate on macOS to prevent system sleep during the pull
+ if command -v caffeinate &> /dev/null; then
+ print_info "Using caffeinate to prevent system sleep during download..."
+ caffeinate -i lume pull macos-sequoia-cua:latest
+ else
+ lume pull macos-sequoia-cua:latest
+ fi
else
print_error "Installation cancelled."
exit 1
@@ -296,4 +303,4 @@ print_success "C/ua Computer-Use Agent UI is now running at http://localhost:786
echo
echo "🌐 Open your browser and go to: http://localhost:7860/"
echo
-"$DEMO_DIR/start_ui.sh"
\ No newline at end of file
+"$DEMO_DIR/start_ui.sh"