@echo off setlocal echo ============================================================ echo Zynq Flasher — Windows x64 Build Script echo ============================================================ echo. REM ── 1. Check Python ───────────────────────────────────────── python --version >nul 2>&1 if %errorlevel% neq 0 ( echo [ERROR] Python not found. Install Python 3.9+ first. pause exit /b 1 ) echo [1/4] Python: OK REM ── 2. Install dependencies ───────────────────────────────── echo [2/4] Installing Python packages... pip install -r requirements.txt --quiet pip install pyinstaller --quiet echo Done. REM ── 3. Clean previous builds ──────────────────────────────── echo [3/4] Cleaning previous builds... if exist build rmdir /s /q build if exist dist\ZynqFlasher.exe del /q dist\ZynqFlasher.exe if not exist dist mkdir dist REM ── 4. Build ──────────────────────────────────────────────── echo [4/4] Building ZynqFlasher.exe... pyinstaller --clean --noconfirm ZynqFlasher.spec echo. if exist dist\ZynqFlasher.exe ( echo ============================================================ echo Build successful! echo Output: dist\ZynqFlasher.exe echo ============================================================ ) else ( echo [ERROR] Build failed — dist\ZynqFlasher.exe not found. pause exit /b 1 ) endlocal pause