-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_mac.sh
More file actions
53 lines (46 loc) · 1.71 KB
/
Copy pathsetup_mac.sh
File metadata and controls
53 lines (46 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# ============================================================================
# Mac Setup Script
# ============================================================================
# This script makes the launcher scripts executable and installs dependencies
# ============================================================================
echo ""
echo "============================================================"
echo "One Press - Setup"
echo "============================================================"
echo ""
# Navigate to script directory
cd "$(dirname "$0")"
echo "Making scripts executable..."
chmod +x launch_chrome_mac.sh
chmod +x launch_chrome_mac.command
chmod +x run_mac.sh
echo "✓ Scripts are now executable"
echo ""
echo "Installing Python dependencies..."
echo ""
# Check if pip3 is available
if command -v pip3 &> /dev/null; then
pip3 install -r requirements.txt
else
echo "WARNING: pip3 not found. Please install Python 3 first."
echo "Visit: https://www.python.org/downloads/"
fi
echo ""
echo "============================================================"
echo "Setup Complete!"
echo "============================================================"
echo ""
echo "IMPORTANT: Grant Accessibility Permissions"
echo "-------------------------------------------"
echo "The keyboard library needs accessibility permissions on Mac."
echo ""
echo "When you run the script, macOS will prompt you to allow"
echo "Terminal in System Preferences > Security & Privacy > Accessibility"
echo ""
echo "NEXT STEPS:"
echo "1. Double-click 'launch_chrome_mac.command' to start Chrome"
echo "2. In Terminal, run: sudo python3 onepress.py"
echo "3. Press 'P' on any webpage to solve it"
echo ""
read -p "Press Enter to finish..."