-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.command
More file actions
executable file
·38 lines (31 loc) · 889 Bytes
/
setup.command
File metadata and controls
executable file
·38 lines (31 loc) · 889 Bytes
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
cd "$(dirname "$0")"
clear
echo "🚀 Setting up AutoTyper for macOS..."
echo ""
if ! command -v python3 >/dev/null 2>&1; then
echo "❌ python3 not found."
echo "Install from https://www.python.org/"
read -p "Press Enter to exit..."
exit 1
fi
if [ ! -d "venv" ]; then
echo "📦 Creating virtual environment..."
python3 -m venv venv || exit 1
fi
PYTHON="./venv/bin/python"
PIP="./venv/bin/pip"
echo "⬆️ Upgrading pip..."
"$PYTHON" -m pip install --upgrade pip || exit 1
echo "📥 Installing dependencies..."
"$PIP" install -r requirements.txt || exit 1
echo ""
echo "✅ Setup complete!"
echo ""
echo "⚠️ macOS permissions required:"
echo "System Settings → Privacy & Security → Accessibility"
echo "Enable: Terminal / VS Code / iTerm"
echo ""
echo "▶️ To run:"
echo " ./venv/bin/python main.py"
echo ""
read -p "Press Enter to close..."