-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackageApp.bat
50 lines (44 loc) · 1.11 KB
/
PackageApp.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
set PAUSE_ERRORS=1
call bat\SetupSDK.bat
call bat\SetupApplication.bat
:menu
echo.
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\Packager.bat
pause