build_debug.bat
761 Bytes
@echo off
cd /d %~dp0..
echo ============================================
echo AiCar debug APK build (signed with release keystore)
echo ============================================
echo.
echo Start build, first run downloads deps, please wait ...
call gradlew.bat assembleDebug
if errorlevel 1 (
echo.
echo [ERROR] BUILD FAILED, no new APK generated. Skip install.
echo Fix compile errors above, then re-run this script.
pause
exit /b 1
)
echo.
echo BUILD DONE. APK location below:
dir app\build\outputs\apk\debug\*.apk
echo.
echo Install latest debug APK to device:
pushd app\build\outputs\apk\debug
for /f "delims=" %%f in ('dir /b /o-d *.apk 2^>nul') do (
adb install -r "%%f"
goto :installed
)
:installed
popd
echo.
pause