anodyne/AIR/intra/bat/InstallAirRuntime.bat

28 lines
469 B
Batchfile

@echo off
set PAUSE_ERRORS=1
call mSetupSDK.bat
:: AIR runtime installer
set AIR_INSTALLER=%FLEX_SDK%\runtimes\air\android\device\runtime.apk
:: Install
adb devices
echo.
echo Installing AIR runtime on current device:
echo %AIR_INSTALLER%
echo.
adb install "%AIR_INSTALLER%"
echo.
if errorlevel 1 goto failed
goto end
:failed
echo Troubleshooting:
echo - one, and only one, Android device should be connected
echo - verify 'mSetupSDK.bat'
echo.
goto end
:end
pause