File size: 1,075 Bytes
4689c2b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash
cd "$(dirname "$0")/.."
clear
echo "======================================================"
echo "               WAN2GP INSTALLER MENU"
echo "======================================================"
echo "1. Use 'venv' (Easiest - Comes prepackaged)"
echo "2. Use 'uv' (Recommended - Fast)"
echo "3. Use 'Conda'"
echo "4. No Environment (Not Recommended)"
echo "5. Exit"
echo "------------------------------------------------------"
read -p "Select an option (1-4): " choice

if [ "$choice" == "1" ]; then
    ENV_TYPE="venv"
elif [ "$choice" == "2" ]; then
    ENV_TYPE="uv"
    if ! command -v uv &> /dev/null; then
        echo "[!] 'uv' not found."
        echo "Installing uv..."
        curl -LsSf https://astral.sh/uv/install.sh | sh
        source $HOME/.cargo/env
    fi
elif [ "$choice" == "3" ]; then
    ENV_TYPE="conda"
elif [ "$choice" == "4" ]; then
    ENV_TYPE="none"
else
    exit 0
fi

python3 setup.py install --env $ENV_TYPE
echo "Installation complete. Run ./run.sh to start."
read -p "Press Enter to exit..."