@echo off chcp 65001 >nul echo. echo [build] Starting... echo. :: 1. Build frontend echo [1/3] Building frontend... cd frontend call npm install >nul 2>&1 call npm run build >nul 2>&1 if errorlevel 1 ( echo [error] Frontend build failed pause exit /b 1 ) cd .. :: 2. Build Wails app (output to build/bin/) echo [2/3] Building Wails app... wails build -platform windows/amd64 if errorlevel 1 ( echo [error] Wails build failed pause exit /b 1 ) :: 3. Copy exe to root echo [3/3] Copying exe to root... copy /Y build\bin\go_win_template.exe go_win_template.exe >nul echo. echo [done] go_win_template.exe is ready. echo. pause