Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@echo off
setlocal enabledelayedexpansion
title WanGP Installer

:MENU
cls
echo ======================================================
echo WAN2GP INSTALLER MENU
echo ======================================================
echo 1. Use 'venv' (Easiest - Comes prepackaged with python)
echo 2. Use 'uv' (Recommended - Handles Python 3.11 better)
echo 3. Use 'Conda'
echo 4. No Environment (Not Recommended)
echo 5. Exit
echo ------------------------------------------------------
set /p choice="Select an option (1-4): "

if "%choice%"=="1" (
set "ENV_TYPE=venv"
goto START_INSTALL
)

if "%choice%"=="2" (
set "ENV_TYPE=uv"
where uv >nul 2>nul
if !errorlevel! neq 0 (
echo [!] 'uv' not found.
echo 1. Install 'uv' via PowerShell (Recommended)
echo 2. Install 'uv' via Pip
set /p uv_choice="Select method: "
if "!uv_choice!"=="1" (
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
set "PATH=!USERPROFILE!\.local\bin;!APPDATA!\uv\bin;!PATH!"
)
if "!uv_choice!"=="2" python -m pip install uv
)
goto START_INSTALL
)

if "%choice%"=="3" (
set "ENV_TYPE=conda"
goto START_INSTALL
)

if "%choice%"=="4" (
set "ENV_TYPE=none"
goto START_INSTALL
)

if "%choice%"=="5" exit
goto MENU

:START_INSTALL
python setup.py install --env !ENV_TYPE!
pause
34 changes: 34 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash
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..."
3 changes: 3 additions & 0 deletions manage.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
python setup.py manage
pause
3 changes: 3 additions & 0 deletions manage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
clear
python3 setup.py manage
3 changes: 3 additions & 0 deletions run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
python setup.py run
pause
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
python3 setup.py run
read -p "Press Enter to exit..."
Loading