Use caffeinate on macOS to prevent system sleep during the pull

This commit is contained in:
Dillon DuPont
2025-06-18 15:39:54 -04:00
parent a77861da47
commit 6bbeac9777
+9 -2
View File
@@ -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"
"$DEMO_DIR/start_ui.sh"