-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.command
More file actions
49 lines (43 loc) · 1.17 KB
/
Copy pathbuild.command
File metadata and controls
49 lines (43 loc) · 1.17 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
# Ensure we're running from the directory where the script is located
cd "$(dirname "$0")"
echo "======================================================="
echo "LUT Builder - macOS Build Script"
echo "======================================================="
echo ""
# Check if uv is installed
if ! command -v uv &> /dev/null; then
echo "[ERROR] 'uv' is not installed or not in your PATH."
echo "Please install uv by running:"
echo "curl -LsSf https://astral.sh/uv/install.sh | sh"
echo "Or visit https://docs.astral.sh/uv/getting-started/installation/ for more instructions."
echo ""
echo "Press any key to exit..."
read -n 1
exit 1
fi
echo "[INFO] Syncing dependencies..."
uv sync
if [ $? -ne 0 ]; then
echo "[ERROR] Failed to sync dependencies."
echo ""
echo "Press any key to exit..."
read -n 1
exit 1
fi
echo ""
echo "[INFO] Running lut-builder build..."
uv run lut-builder build
if [ $? -ne 0 ]; then
echo ""
echo "[ERROR] Build failed."
echo ""
echo "Press any key to exit..."
read -n 1
exit 1
fi
echo ""
echo "[SUCCESS] Build completed successfully."
echo ""
echo "Press any key to exit..."
read -n 1