mirror of
https://github.com/trycua/computer.git
synced 2026-05-12 11:29:41 -05:00
Use caffeinate on macOS to prevent system sleep during the pull
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user