bat compilation files, fd project file

This commit is contained in:
Melos Han-Tani 2020-04-04 19:22:45 +09:00
parent fd90b4d4b9
commit 41499f8159
18 changed files with 879 additions and 0 deletions

96
intra/Intra-AIR.as3proj Normal file
View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<project version="2">
<!-- Output SWF options -->
<output>
<movie outputType="Application" />
<movie input="" />
<movie path="bin\Anodyne.swf" />
<movie fps="30" />
<movie width="480" />
<movie height="540" />
<movie version="3" />
<movie minorVersion="7" />
<movie platform="AIR" />
<movie background="#000000" />
<movie preferredSDK="C:\Users\hantani\Documents\Anodyne 1 Repo\installation files\flex_sdk_4.6" />
</output>
<!-- Other classes to be compiled into your SWF -->
<classpaths>
<class path="src" />
</classpaths>
<!-- Build options -->
<build>
<option accessible="False" />
<option advancedTelemetry="False" />
<option allowSourcePathOverlap="False" />
<option benchmark="False" />
<option es="False" />
<option inline="False" />
<option locale="" />
<option loadConfig="" />
<option optimize="True" />
<option omitTraces="True" />
<option showActionScriptWarnings="True" />
<option showBindingWarnings="True" />
<option showInvalidCSS="True" />
<option showDeprecationWarnings="True" />
<option showUnusedTypeSelectorWarnings="True" />
<option strict="True" />
<option useNetwork="True" />
<option useResourceBundleMetadata="True" />
<option warnings="True" />
<option verboseStackTraces="False" />
<option linkReport="" />
<option loadExterns="" />
<option staticLinkRSL="True" />
<option additional="-swf-version=20&#xA;+configname=air" />
<option compilerConstants="" />
<option minorVersion="" />
</build>
<!-- SWC Include Libraries -->
<includeLibraries>
<!-- example: <element path="..." /> -->
</includeLibraries>
<!-- SWC Libraries -->
<libraryPaths>
<element path="src\com\amanitadesign\FRESteamWorks.ane" />
</libraryPaths>
<!-- External Libraries -->
<externalLibraryPaths>
<!-- example: <element path="..." /> -->
</externalLibraryPaths>
<!-- Runtime Shared Libraries -->
<rslPaths>
<!-- example: <element path="..." /> -->
</rslPaths>
<!-- Intrinsic Libraries -->
<intrinsics>
<!-- example: <element path="..." /> -->
</intrinsics>
<!-- Assets to embed into the output SWF -->
<library>
<!-- example: <asset path="..." id="..." update="..." glyphs="..." mode="..." place="..." sharepoint="..." /> -->
</library>
<!-- Class files to compile (other referenced classes will automatically be included) -->
<compileTargets>
<compile path="src\Main.as" />
</compileTargets>
<!-- Paths to exclude from the Project Explorer tree -->
<hiddenPaths>
<hidden path="obj" />
</hiddenPaths>
<!-- Executed before build -->
<preBuildCommand />
<!-- Executed after build -->
<postBuildCommand alwaysRun="False" />
<!-- Other project options -->
<options>
<option showHiddenPaths="True" />
<option testMovie="Custom" />
<option testMovieCommand="Run.bat" />
</options>
<!-- Plugin storage -->
<storage>
<entry key="air-descriptor"><![CDATA[xml_app\application_steam.xml]]></entry>
</storage>
</project>

20
intra/PackageApp.bat Normal file
View File

@ -0,0 +1,20 @@
::@echo off
::set PAUSE_ERRORS=1
::::call bat\SetupSDK.bat
::call bat\SetupApplication.bat
::set AIR_TARGET=
::set AIR_TARGET=-captive-runtime
::set OPTIONS=
::call bat\Packager.bat
::pause
@echo off
set PAUSE_ERRORS=1
call bat\SetupSDK.bat
call bat\SetupApplication.bat
call bat\PackagerExe.bat
pause

17
intra/Run.bat Normal file
View File

@ -0,0 +1,17 @@
@echo off
set PAUSE_ERRORS=1
call bat\SetupSDK.bat
call bat\SetupApplication.bat
echo.
echo Starting AIR Debug Launcher...
echo.
adl "%APP_XML%" "%APP_DIR%"
if errorlevel 1 goto error
goto end
:error
pause
:end

99
intra/RunMobile.bat Normal file
View File

@ -0,0 +1,99 @@
:: Looks like this is the same as mRun.bat and bat/mRun.bat?? why? oh well.
:: This doesn't package the game as an apk, it instead starts the game in a mobile format?
@echo off
set PAUSE_ERRORS=1
:: Gets the paths tothe Flex and Android SDKs
call bat\mSetupSDK.bat
:: Sets up environment variables
call bat\mSetupApplication.bat
:target
goto desktop
::goto android-debug
::goto android-test
::goto ios-debug
::goto ios-test
:desktop
:: http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-6fa6d7e0128cca93d31-8000.html
set SCREEN_SIZE=iPod
::set SCREEN_SIZE=iPad
:desktop-run
echo.
echo Starting AIR Debug Launcher with screen size '%SCREEN_SIZE%'
echo.
echo (hint: edit 'RunMobile.bat' to test on device or change screen size)
echo.
adl -screensize %SCREEN_SIZE% "%APP_XML%" "%APP_DIR%"
if errorlevel 1 goto error
goto end
::ios-debug
::echo.
::echo Packaging application for debugging on iOS
::echo.
::set TARGET=-debug-interpreter
::set OPTIONS=-connect %DEBUG_IP%
::goto ios-package
:::ios-test
::echo.
::echo Packaging application for testing on iOS
::echo.
::set TARGET=-test-interpreter
::set OPTIONS=
::goto ios-package
:::ios-package
::set PLATFORM=ios
::call bat\Packager.bat
::echo Now manually install and start application on device
::echo.
::goto error
:android-debug
echo.
echo Packaging and installing application for debugging on Android (%DEBUG_IP%)
echo.
set TARGET=-debug
set OPTIONS=-connect %DEBUG_IP%
goto android-package
:android-test
echo.
echo Packaging and Installing application for testing on Android (%DEBUG_IP%)
echo.
set TARGET=
set OPTIONS=
goto android-package
:android-package
set PLATFORM=android
call bat\mPackager.bat
adb devices
echo.
echo Installing %OUTPUT% on the device...
echo.
adb -d install -r "%OUTPUT%"
::adb -e install -r "%OUTPUT%"
if errorlevel 1 goto installfail
echo.
echo Starting application on the device for debugging...
echo.
adb shell am start -n air.%APP_ID%/.AppEntry
exit
:installfail
echo.
echo Installing the app on the device failed
:error
pause

View File

@ -0,0 +1,28 @@
@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

View File

@ -0,0 +1,3 @@
adb install ../dist/Anodyne-debug.apk
echo.
pause

37
intra/bat/PackagerExe.bat Normal file
View File

@ -0,0 +1,37 @@
@echo off
if not exist %CERT_FILE% goto certificate
:: AIR output
:: Package
echo.
echo Packaging Air EXECUTEABLE %AIR_NAME% using certificate %CERT_FILE%...
::call adt -package %OPTIONS% %SIGNING_OPTIONS% %OUTPUT% %APP_XML% %FILE_OR_DIR%
call adt -package %SIGNING_OPTIONS% -target bundle %AIR_NAME%_standalone %APP_XML% %FILE_OR_DIR% -extdir ane\
if errorlevel 1 goto failed
goto end
:certificate
echo.
echo Certificate not found: %CERT_FILE%
echo.
echo Troubleshooting:
echo - generate a default certificate using 'bat\CreateCertificate.bat'
echo.
if %PAUSE_ERRORS%==1 pause
exit
:failed
echo AIR setup creation FAILED.
echo.
echo Troubleshooting:
echo - did you build your project in FlashDevelop?
echo - verify AIR SDK target version in %APP_XML%
echo.
if %PAUSE_ERRORS%==1 pause
exit
:end
echo.

View File

@ -0,0 +1,44 @@
:user_configuration
:: About AIR application packaging
:: http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_5.html#1035959
:: http://livedocs.adobe.com/flex/3/html/distributing_apps_4.html#1037515
:: NOTICE: all paths are relative to project root
:: Your certificate information
set CERT_NAME="Anodyne"
set CERT_PASS=fd
set CERT_FILE="bat\Anodyne.p12"
set SIGNING_OPTIONS=-storetype pkcs12 -keystore %CERT_FILE% -storepass %CERT_PASS%
:: Application descriptor
set APP_XML=xml_app\application.xml
:: Files to package
set APP_DIR=bin
set FILE_OR_DIR=-C %APP_DIR% .
:: Your application ID (must match <id> of Application descriptor)
set APP_ID=Anodyne
:: Output
set AIR_PATH=air
set AIR_NAME=Anodyne
:validation
%SystemRoot%\System32\find /C "<id>%APP_ID%</id>" "%APP_XML%" > NUL
if errorlevel 1 goto badid
goto end
:badid
echo.
echo ERROR:
echo Application ID in 'bat\SetupApplication.bat' (APP_ID)
echo does NOT match Application descriptor '%APP_XML%' (id)
echo.
if %PAUSE_ERRORS%==1 pause
exit
:end

View File

@ -0,0 +1,44 @@
:user_configuration
:: About AIR application packaging
:: http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_5.html#1035959
:: http://livedocs.adobe.com/flex/3/html/distributing_apps_4.html#1037515
:: NOTICE: all paths are relative to project root
echo In SetupApplication_Mac.bat
:: Your certificate information
set CERT_NAME="Anodyne"
set CERT_PASS=fd
set CERT_FILE="bat\Anodyne.p12"
set SIGNING_OPTIONS=-storetype pkcs12 -keystore %CERT_FILE% -storepass %CERT_PASS%
:: Application descriptor
set APP_XML=xml_app\application_steam_mac.xml
:: Files to package
set APP_DIR=bin
set FILE_OR_DIR=-C %APP_DIR% .
:: Your application ID (must match <id> of Application descriptor)
set APP_ID=Anodyne
:: Output
set AIR_PATH=air
set AIR_NAME=Anodyne
:validation
%SystemRoot%\System32\find /C "<id>%APP_ID%</id>" "%APP_XML%" > NUL
if errorlevel 1 goto badid
goto end
:badid
echo.
echo ERROR:
echo Application ID in 'bat\SetupApplication.bat' (APP_ID)
echo does NOT match Application descriptor '%APP_XML%' (id)
echo.
if %PAUSE_ERRORS%==1 pause
exit
:end

22
intra/bat/SetupSDK.bat Normal file
View File

@ -0,0 +1,22 @@
:user_configuration
:: Path to Flex SDK
set FLEX_SDK=C:\Users\hantani\Documents\Anodyne 1 Repo\installation files\flex_sdk_4.6
:validation
if not exist "%FLEX_SDK%" goto flexsdk
goto succeed
:flexsdk
echo.
echo ERROR: incorrect path to Flex SDK in 'bat\SetupSDK.bat'
echo.
echo %FLEX_SDK%
echo.
if %PAUSE_ERRORS%==1 pause
exit
:succeed
set PATH=%PATH%;%FLEX_SDK%\bin

View File

@ -0,0 +1,24 @@
:user_configuration
:: Path to Flex SDK
echo In SetupSDK_MAC.bat
:: This is wrong.
set FLEX_SDK=D:\programs\flashdevelop\Tools\flexsdk
:validation
if not exist "%FLEX_SDK%" goto flexsdk
goto succeed
:flexsdk
echo.
echo ERROR: incorrect path to Flex SDK in 'bat\SetupSDK.bat'
echo.
echo %FLEX_SDK%
echo.
if %PAUSE_ERRORS%==1 pause
exit
:succeed
set PATH=%PATH%;%FLEX_SDK%\bin;D:\Anodyne\Intra\bin

View File

@ -0,0 +1,33 @@
@echo off
cd..
set PAUSE_ERRORS=1
call bat\mSetupSDK.bat
echo mSetupSDK finished
call bat\mSetupApplication.bat
echo mSetupApplication finished
:: Generate
echo.
echo Generating a self-signed certificate for Android packaging
call adt -certificate -validityPeriod 25 -cn %AND_CERT_NAME% 1024-RSA "%AND_CERT_FILE%" %AND_CERT_PASS%
if errorlevel 1 goto failed
:succeed
echo.
echo Certificate created: %AND_CERT_FILE% with password "%AND_CERT_PASS%"
echo.
if "%AND_CERT_PASS%" == "fd" echo (note: you did not change the default password)
echo.
echo HINTS:
echo - you only need to generate this certificate once,
echo - wait a minute before using this certificate to package your AIR application.
echo.
goto end
:failed
echo.
echo Certificate creation FAILED. CERT NAME %AND_CERT_NAME%
echo.
:end
pause

74
intra/bat/mPackager.bat Normal file
View File

@ -0,0 +1,74 @@
@echo off
if "%PLATFORM%"=="android" goto android-config
::if "%PLATFORM%"=="ios" goto ios-config
::if "%PLATFORM%"=="ios-dist" goto ios-dist-config
goto start
:android-config
set CERT_FILE=%AND_CERT_FILE%
set SIGNING_OPTIONS=%AND_SIGNING_OPTIONS%
set ICONS=%AND_ICONS%
set DIST_EXT=apk
set TYPE=apk
goto start
::ios-config
::set CERT_FILE=%IOS_DEV_CERT_FILE%
::set SIGNING_OPTIONS=%IOS_DEV_SIGNING_OPTIONS%
::set ICONS=%IOS_ICONS%
::set DIST_EXT=ipa
::set TYPE=ipa
::goto start
:::ios-dist-config
::set CERT_FILE=%IOS_DIST_CERT_FILE%
::set SIGNING_OPTIONS=%IOS_DIST_SIGNING_OPTIONS%
::set ICONS=%IOS_ICONS%
::set DIST_EXT=ipa
::set TYPE=ipa
::goto start
:start
if not exist "%CERT_FILE%" goto certificate
:: Output file
set FILE_OR_DIR=%FILE_OR_DIR% -C "%ICONS%" .
if not exist "%DIST_PATH%" md "%DIST_PATH%"
set OUTPUT=%DIST_PATH%\%DIST_NAME%%TARGET%.%DIST_EXT%
:: Package
echo Packaging: %OUTPUT%
echo using certificate: %CERT_FILE%...
echo.
echo %TYPE%%TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%" "%APP_XML%" %FILE_OR_DIR%
call adt -package -target %TYPE%%TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%" "%APP_XML%" %FILE_OR_DIR%
echo.
if errorlevel 1 goto failed
goto end
:certificate
echo Certificate not found: %CERT_FILE%
echo.
echo Android:
echo - generate a default certificate using 'bat\mCreateCertificate.bat'
echo or configure a specific certificate in 'bat\mSetupApplication.bat'.
echo.
::echo iOS:
::echo - configure your developer key and project's Provisioning Profile
::echo in 'bat\SetupApplication.bat'.
::echo.
if %PAUSE_ERRORS%==1 pause
exit
:failed
echo APK setup creation FAILED.
echo.
echo Troubleshooting:
echo - did you build your project in FlashDevelop?
echo - verify AIR SDK target version in %APP_XML%
echo.
if %PAUSE_ERRORS%==1 pause
exit
:end

95
intra/bat/mRun.bat Normal file
View File

@ -0,0 +1,95 @@
@echo off
set PAUSE_ERRORS=1
call bat\mSetupSDK.bat
call bat\mSetupApplication.bat
:target
goto desktop
::goto android-debug
::goto android-test
::goto ios-debug
::goto ios-test
:desktop
:: http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-6fa6d7e0128cca93d31-8000.html
::set SCREEN_SIZE=NexusOne
set SCREEN_SIZE=iPod
:desktop-run
echo.
echo Starting AIR Debug Launcher with screen size '%SCREEN_SIZE%'
echo.
echo (hint: edit 'mRun.bat' to test on device or change screen size)
echo.
adl -screensize %SCREEN_SIZE% "%APP_XML%" "%APP_DIR%"
if errorlevel 1 goto error
goto end
::ios-debug
::echo.
::echo Packaging application for debugging on iOS
::echo.
::set TARGET=-debug-interpreter
::set OPTIONS=-connect %DEBUG_IP%
::goto ios-package
:::ios-test
::echo.
::echo Packaging application for testing on iOS
::echo.
::set TARGET=-test-interpreter
::set OPTIONS=
::goto ios-package
:::ios-package
::set PLATFORM=ios
::call bat\Packager.bat
::echo Now manually install and start application on device
::echo.
::goto error
:android-debug
echo.
echo Packaging and installing application for debugging on Android (%DEBUG_IP%)
echo.
set TARGET=-debug
set OPTIONS=-connect %DEBUG_IP%
goto android-package
:android-test
echo.
echo Packaging and Installing application for testing on Android (%DEBUG_IP%)
echo.
set TARGET=
set OPTIONS=
goto android-package
:android-package
set PLATFORM=android
call bat\mPackager.bat
adb devices
echo.
echo Installing %OUTPUT% on the device...
echo.
adb -d install -r "%OUTPUT%"
::adb -e install -r "%OUTPUT%"
if errorlevel 1 goto installfail
echo.
echo Starting application on the device for debugging...
echo.
adb shell am start -n air.%APP_ID%/.AppEntry
exit
:installfail
echo.
echo Installing the app on the device failed
:error
pause

View File

@ -0,0 +1,58 @@
:user_configuration
:: About AIR application packaging
:: http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_5.html#1035959
:: http://livedocs.adobe.com/flex/3/html/distributing_apps_4.html#1037515
:: NOTICE: all paths are relative to project root
:: Android packaging
set AND_CERT_NAME="mAnodyne"
set AND_CERT_PASS=fd
set AND_CERT_FILE=bat\mAnodyne.p12
set AND_ICONS=bin/icons
set AND_SIGNING_OPTIONS=-storetype pkcs12 -keystore "%AND_CERT_FILE%" -storepass %AND_CERT_PASS%
:: iOS packaging
:: set IOS_DIST_CERT_FILE=
:: set IOS_DEV_CERT_FILE=
:: set IOS_DEV_CERT_PASS=
:: set IOS_PROVISION=cert\NewProject.mobileprovision
:: set IOS_ICONS=icons/ios
:: set IOS_DEV_SIGNING_OPTIONS=-storetype pkcs12 -keystore "%IOS_DEV_CERT_FILE%" -storepass %IOS_DEV_CERT_PASS% -provisioning-profile %IOS_PROVISION%
:: set IOS_DIST_SIGNING_OPTIONS=-storetype pkcs12 -keystore "%IOS_DIST_CERT_FILE%" -provisioning-profile %IOS_PROVISION%
:: Application descriptor
set APP_XML=xml_app/mapplicationdroid.xml
:: Files to package
set APP_DIR=bin
set FILE_OR_DIR=-C %APP_DIR% .
:: Your application ID (must match <id> of Application descriptor)
set APP_ID=Anodyne.mobile
:: Output packages
set DIST_PATH=dist
set DIST_NAME=Anodyne
:: Debugging using a custom IP
set DEBUG_IP=
:validation
%SystemRoot%\System32\find /C "<id>%APP_ID%</id>" "%APP_XML%" > NUL
if errorlevel 1 goto badid
goto end
:badid
echo.
echo ERROR:
echo Application ID in 'bat\mSetupApplication.bat' (APP_ID)
echo does NOT match Application descriptor '%APP_XML%' (id)
echo.
:end

38
intra/bat/mSetupSDK.bat Normal file
View File

@ -0,0 +1,38 @@
:user_configuration
:: Path to Flex SDK
:: set FLEX_SDK=D:\programs\flashdevelop\Tools\flex4.6_air_3.8
:: set FLEX_SDK=D:\programs\flashdevelop\Tools\flex4.6_newair
set FLEX_SDK=C:\Users\hantani\Documents\Anodyne 1 Repo\installation files\flex_sdk_4.6
:: Path to Android SDK
set ANDROID_SDK=D:\programs\flashdevelop\Tools\android
:validation
if not exist "%FLEX_SDK%\bin" goto flexsdk
::if not exist "%ANDROID_SDK%\platform-tools" goto androidsdk
goto succeed
:flexsdk
echo.
echo ERROR: incorrect path to Flex SDK in 'bat\mSetupSDK.bat'
echo.
echo Looking for: %FLEX_SDK%\bin
echo.
if %PAUSE_ERRORS%==1 pause
exit
:androidsdk
echo.
echo ERROR: incorrect path to Android SDK in 'bat\mSetupSDK.bat'
echo.
echo Looking for: %ANDROID_SDK%\platform-tools
echo.
if %PAUSE_ERRORS%==1 pause
exit
:succeed
set PATH=%PATH%;%FLEX_SDK%\bin
set PATH=%PATH%;%ANDROID_SDK%\platform-tools

52
intra/mPackageApp.bat Normal file
View File

@ -0,0 +1,52 @@
@echo off
set PAUSE_ERRORS=1
call bat\mSetupSDK.bat
call bat\mSetupApplication.bat
:menu
echo.
:: 2018 - I dont think this matters - might have been for humble bundle in 2013
:: echo WAIT: Did you make sure the home/back buttons work, and the app id is .humble
echo Package for target
echo.
echo Android:
echo.
echo [1] normal (apk)
echo [2] debug (apk-debug)
echo [3] captive (apk-captive-runtime)
echo.
::echo iOS:
::echo.
::echo [4] fast test (ipa-test-interpreter)
::echo [5] fast debug (ipa-debug-interpreter)
::echo [6] slow test (ipa-test)
::echo [7] slow debug (ipa-debug)
::echo [8] "ad-hoc" (ipa-ad-hoc)
::echo [9] App Store (ipa-app-store)
::echo.
:choice
set /P C=[Choice]:
echo.
set PLATFORM=android
set OPTIONS=
::if %C% GTR 3 set PLATFORM=ios
::if %C% GTR 7 set PLATFORM=ios-dist
if "%C%"=="1" set TARGET=
if "%C%"=="2" set TARGET=-debug
if "%C%"=="2" set OPTIONS=-connect %DEBUG_IP%
if "%C%"=="3" set TARGET=-captive-runtime
::if "%C%"=="4" set TARGET=-test-interpreter
::if "%C%"=="5" set TARGET=-debug-interpreter
::if "%C%"=="5" set OPTIONS=-connect %DEBUG_IP%
::if "%C%"=="6" set TARGET=-test
::if "%C%"=="7" set TARGET=-debug
::if "%C%"=="7" set OPTIONS=-connect %DEBUG_IP%
::if "%C%"=="8" set TARGET=-ad-hoc
::if "%C%"=="9" set TARGET=-app-store
call bat\mPackager.bat
pause

95
intra/mRun.bat Normal file
View File

@ -0,0 +1,95 @@
@echo off
set PAUSE_ERRORS=1
call bat\mSetupSDK.bat
call bat\mSetupApplication.bat
:target
goto desktop
::goto android-debug
::goto android-test
::goto ios-debug
::goto ios-test
:desktop
:: http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-6fa6d7e0128cca93d31-8000.html
set SCREEN_SIZE=iPhone
::set SCREEN_SIZE=iPad
:desktop-run
echo.
echo Starting AIR Debug Launcher with screen size '%SCREEN_SIZE%'
echo.
echo (hint: edit 'mRun.bat' to test on device or change screen size)
echo.
adl -screensize %SCREEN_SIZE% "%APP_XML%" "%APP_DIR%"
if errorlevel 1 goto error
goto end
::ios-debug
::echo.
::echo Packaging application for debugging on iOS
::echo.
::set TARGET=-debug-interpreter
::set OPTIONS=-connect %DEBUG_IP%
::goto ios-package
:::ios-test
::echo.
::echo Packaging application for testing on iOS
::echo.
::set TARGET=-test-interpreter
::set OPTIONS=
::goto ios-package
:::ios-package
::set PLATFORM=ios
::call bat\Packager.bat
::echo Now manually install and start application on device
::echo.
::goto error
:android-debug
echo.
echo Packaging and installing application for debugging on Android (%DEBUG_IP%)
echo.
set TARGET=-debug
set OPTIONS=-connect %DEBUG_IP%
goto android-package
:android-test
echo.
echo Packaging and Installing application for testing on Android (%DEBUG_IP%)
echo.
set TARGET=
set OPTIONS=
goto android-package
:android-package
set PLATFORM=android
call bat\mPackager.bat
adb devices
echo.
echo Installing %OUTPUT% on the device...
echo.
adb -d install -r "%OUTPUT%"
::adb -e install -r "%OUTPUT%"
if errorlevel 1 goto installfail
echo.
echo Starting application on the device for debugging...
echo.
adb shell am start -n air.%APP_ID%/.AppEntry
exit
:installfail
echo.
echo Installing the app on the device failed
:error
pause