-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartkeet.command
More file actions
executable file
·49 lines (42 loc) · 1.45 KB
/
startkeet.command
File metadata and controls
executable file
·49 lines (42 loc) · 1.45 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
#!/bin/bash
# SuperKeet Launcher - Uses UV for dependency management
# Get the directory where this script lives
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"
# Function to check if a command exists
command_exists() {
command -v "$1" &> /dev/null
}
echo ""
echo "════════════════════════════════════════"
echo " SuperKeet Launcher"
echo "════════════════════════════════════════"
echo ""
# Check for UV and uv.lock
if command_exists uv && [ -f "uv.lock" ]; then
echo "✓ Found UV environment (uv.lock)"
echo "✓ Running with UV..."
echo ""
uv run python -m superkeet.main
exit $?
fi
# UV not found or uv.lock missing
echo ""
echo "════════════════════════════════════════"
echo "❌ ERROR: UV Environment Not Found"
echo "════════════════════════════════════════"
echo ""
if ! command_exists uv; then
echo "UV is not installed."
echo ""
echo "To install UV, run:"
echo " curl -LsSf https://astral.sh/uv/install.sh | sh"
echo ""
else
echo "UV is installed but uv.lock is missing."
echo ""
fi
echo "To set up SuperKeet, run:"
echo " ./setup.sh"
echo ""
exit 1