| 1 |
@echo off |
|---|
| 2 |
|
|---|
| 3 |
:: AIR certificate generator |
|---|
| 4 |
:: More information: |
|---|
| 5 |
:: http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_5.html#1035959 |
|---|
| 6 |
:: http://livedocs.adobe.com/flex/3/html/distributing_apps_4.html#1037515 |
|---|
| 7 |
|
|---|
| 8 |
:: Path to Flex SDK binaries |
|---|
| 9 |
set PATH=%PATH%;C:\flex3sdk\bin |
|---|
| 10 |
|
|---|
| 11 |
:: Certificate information |
|---|
| 12 |
set NAME=uwitenpen |
|---|
| 13 |
set PASSWORD=shllwgthrtthrvr |
|---|
| 14 |
set CERTIFICATE=SelfSigned.pfx |
|---|
| 15 |
|
|---|
| 16 |
call adt -certificate -cn %NAME% 1024-RSA %CERTIFICATE% %PASSWORD% |
|---|
| 17 |
if errorlevel 1 goto failed |
|---|
| 18 |
|
|---|
| 19 |
echo. |
|---|
| 20 |
echo Certificate created: %CERTIFICATE% |
|---|
| 21 |
echo With password: %PASSWORD% |
|---|
| 22 |
echo. |
|---|
| 23 |
echo Hint: you may have to wait a few minutes before using this certificate to build your AIR application setup. |
|---|
| 24 |
echo. |
|---|
| 25 |
goto end |
|---|
| 26 |
|
|---|
| 27 |
:failed |
|---|
| 28 |
echo. |
|---|
| 29 |
echo Certificate creation FAILED. |
|---|
| 30 |
echo. |
|---|
| 31 |
echo Troubleshotting: did you configure the Flex SDK path in this Batch file? |
|---|
| 32 |
echo. |
|---|
| 33 |
|
|---|
| 34 |
:end |
|---|
| 35 |
pause |
|---|