-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·50 lines (38 loc) · 990 Bytes
/
install.sh
File metadata and controls
executable file
·50 lines (38 loc) · 990 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
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
echo "=== HeartMuse Music Generator - Installation ==="
# Check Python
PYTHON=""
for cmd in python3.10 python3 python; do
if command -v "$cmd" &>/dev/null; then
PYTHON="$cmd"
break
fi
done
if [ -z "$PYTHON" ]; then
echo "Error: Python not found. Please install Python 3.10+"
exit 1
fi
echo "Using Python: $($PYTHON --version)"
# Create venv
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
$PYTHON -m venv venv
fi
source venv/bin/activate
echo "Upgrading pip..."
pip install --upgrade pip
# Clone heartlib
if [ ! -d "heartlib" ]; then
echo "Cloning heartlib..."
git clone https://github.com/HeartMuLa/heartlib.git
fi
echo "Installing heartlib..."
pip install -e ./heartlib
echo "Installing app dependencies..."
pip install -r requirements.txt
echo ""
echo "=== Installation complete! ==="
echo "Run ./run.sh to start the application."