Windows support included

This commit is contained in:
Eric Ratliff
2026-01-21 08:00:25 -06:00
parent 81452a8670
commit 63827dba58
15 changed files with 1342 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
@echo off
REM Generate build.bat helper script
setlocal
set "PROJECT_DIR=%~1"
(
echo @echo off
echo REM Quick build/check script for FTC project
echo.
echo setlocal
echo.
echo set CLEAN=0
echo.
echo :parse_args
echo if "%%~1"=="" goto args_done
echo if /i "%%~1"=="--clean" set CLEAN=1
echo if /i "%%~1"=="-c" set CLEAN=1
echo shift
echo goto parse_args
echo.
echo :args_done
echo.
echo if %%CLEAN%%==1 ^(
echo echo Cleaning build...
echo call gradlew clean
echo ^)
echo.
echo echo Building and testing...
echo call gradlew build test
echo.
echo if errorlevel 1 ^(
echo echo.
echo echo Build FAILED - check errors above
echo exit /b 1
echo ^)
echo.
echo echo.
echo echo ================================================================
echo echo Build Successful!
echo echo ================================================================
echo echo.
echo echo Your code compiles and all tests pass.
echo echo Ready to deploy to robot when you are.
echo echo.
echo echo Next steps:
echo echo 1. Uncomment FTC imports in hardware and opmodes
echo echo 2. Run: deploy-to-robot.bat
echo echo.
echo.
echo endlocal
echo exit /b 0
) > "%PROJECT_DIR%\build.bat"
endlocal
exit /b 0