-
Notifications
You must be signed in to change notification settings - Fork 1
/
PackageIphone.bat
69 lines (60 loc) · 1.99 KB
/
PackageIphone.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
:: iPhone IPA generator
:: More information:
:: http://labs.adobe.com/technologies/packagerforiphone/
:: http://download.macromedia.com/pub/labs/packagerforiphone/packagerforiphone_devguide.pdf
::
:: FlashDevelop Project Template
:: http://blubl.geoathome.at (german)
cls
@echo off
:: Path to Flex SDK binaries
set FLEX_SDK=C:\Program Files\FlashDevelop\Tools\flexsdk
set PATH=%PATH%;%FLEX_SDK%
:: Certificate files
set CERTIFICATE_FILE=certificates\iphone_dev.p12
set PROVISIONIG_FILE=certificates\iphone_dev.mobileprovision
:menu
echo iPhone IPA generator
echo.
echo. What kind of ipa do you wish to create?
echo.
echo. [1]test (ipa-test)
echo. [2]debug (ipa-debug)
echo. [3]store (ipa-app-store)
echo. [4]ad-hoc (ipa-ad-hoc)
echo.
:choice
set /P C=[Option]:
if "%C%"=="1" set IPATYPE=ipa-test
if "%C%"=="2" set IPATYPE=ipa-debug
if "%C%"=="3" set IPATYPE=ipa-app-store
if "%C%"=="4" set IPATYPE=ipa-ad-hoc
echo. You have chosen '%IPATYPE%'.
echo.
goto pass
:pass
echo Before you enter your password, make sure no-one is looking!
set /p PASSWORD=Enter Certificate Password:
cls
echo iPhone IPA generator
echo.
echo. Thanks, password input done.
echo.
goto ipa
:ipa
echo. IPA creation may take up to 3 minutes, please be patient
echo. --------------------------------------------------------
call pfi -package -target ipa-test -provisioning-profile %PROVISIONIG_FILE% -storetype pkcs12 -keystore %CERTIFICATE_FILE% -storepass %PASSWORD% iphone/SpaceInvadersClientIphone-%IPATYPE%.ipa application.xml bin/SpaceInvadersClientIphone.swf bin/Default.png bin/icons
if errorlevel 1 goto failed
echo. --------------------------------------------------------
echo. SUCCESS: IPA created in (./iphone/SpaceInvadersClientIphone-%IPATYPE%.ipa)
echo.
goto end
:failed
echo. --------------------------------------------------------
echo. ERROR: IPA creation FAILED.
echo.
echo. Troubleshotting: did you configure the Flex SDK path in this Batch file?
echo.
:end
pause