Standardize install and packaging scripts on uv

Add Setup.bat for one-click Windows uv venv/install/shortcut, switch
build_windows_exe.bat to uv, and document uv as the primary install path.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-07-22 08:35:14 +00:00
parent ff9d35f488
commit 71c269b9f0
4 changed files with 115 additions and 40 deletions

45
desktop/Setup.bat Normal file
View File

@@ -0,0 +1,45 @@
@echo off
REM One-time Windows setup with uv: create .venv, install package, Desktop shortcut.
setlocal
cd /d "%~dp0\.."
where uv >nul 2>&1
if errorlevel 1 (
echo uv was not found on PATH.
echo Install uv from https://docs.astral.sh/uv/getting-started/installation/
echo then re-run this script.
pause
exit /b 1
)
if not exist ".venv\Scripts\python.exe" (
echo Creating .venv with uv...
uv venv .venv
if errorlevel 1 (
echo uv venv failed.
pause
exit /b 1
)
) else (
echo Using existing .venv
)
echo Installing xlsx-clean into .venv...
uv pip install -e . -p .venv\Scripts\python.exe
if errorlevel 1 (
echo uv pip install failed.
pause
exit /b 1
)
echo Creating Desktop shortcut...
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Install-DesktopShortcut.ps1"
if errorlevel 1 (
echo Desktop shortcut step failed.
pause
exit /b 1
)
echo.
echo Setup complete. Double-click the XlsxClean icon on your Desktop.
pause