diff --git a/launch.cmd b/launch.cmd index 474de48..238dff9 100644 --- a/launch.cmd +++ b/launch.cmd @@ -5,7 +5,7 @@ if exist .venv ( call .venv\Scripts\activate.bat ) else ( REM Run uv sync if .venv does not exist - uv sync --no-dev + uv sync call .venv\Scripts\activate.bat ) @@ -13,9 +13,7 @@ REM Perform a git pull git pull REM Run uv sync if .venv exists (already activated) -if exist .venv ( - uv sync --no-dev -) +uv sync --no-dev REM Start main.py uv run python main.py diff --git a/launch.ps1 b/launch.ps1 index 4efb68e..89d456a 100644 --- a/launch.ps1 +++ b/launch.ps1 @@ -4,7 +4,7 @@ if (Test-Path .venv) { .\.venv\Scripts\Activate.ps1 } else { # Run uv sync if .venv does not exist - uv sync --no-dev + uv sync .\.venv\Scripts\Activate.ps1 } @@ -12,9 +12,7 @@ if (Test-Path .venv) { git pull # Run uv sync if .venv exists (already activated) -if (Test-Path .venv) { - uv sync --no-dev -} +uv sync --no-dev # Start main.py uv run python main.py