Packaging an AIR for TV applicationPackaging with ADTYou can use the AIR ADT command-line tool to package an AIR for TV application. The AIR SDK version 2.5 supports packaging for TV devices. Before packaging, all your ActionScript and MXML code must be compiled. You must also have a code signing certificate. You can create a certificate using the ADT -certificate command. For a detailed reference on ADT commands and options see AIR Developer Tool (ADT). Creating an AIR packageTo create an AIR package, use the ADT package command: adt -package storetype pkcs12 -keystore ../codesign.p12 myApp.air myApp-app.xml myApp.swf icons The example assumes that the path to the ADT tool is on your command-line shell’s path definition. (See Path environment variables for help.) You must run the command from the directory containing the application files. The application files in the example are myApp-app.xml (the application descriptor file), myApp.swf, and an icons directory. When you run the command as shown, ADT will prompt you for the keystore password. (The password characters you type are not displayed by all shell programs; just press Enter when you are done typing.) Creating an AIRN packageTo create an AIRN package, use the ADT package command, setting the target type to airn. adt -package -storetype pkcs12 -keystore ../codesign.p12 -target airn myApp.airn myApp-app.xml myApp.swf extension.ane icons The example assumes that the path to the ADT tool is on your command-line shell’s path definition. (See Path environment variables for help.) You must run the command from the directory containing the application files. The application files in the example are myApp-app.xml (the application descriptor file), myApp.swf, and an icons directory. When you run the command as shown, ADT will prompt you for the keystore password. (The password characters you type are not displayed by all shell programs; just press Enter when you are done typing.) You can also create an AIRN file from an AIRI file (which is an unsigned AIR package): adt -package -storetype pkcs12 -keystore ../codesign.p12 -target airn myApp.airn myApp.airi Packaging with Flash Builder or Flash ProfessionalFlash Professional and Flash Builder allow you to publish or export the AIR packages without having to run ADT yourself. The procedure for creating an AIR package for an AIR application is covered in the documentation for these programs. AIRN packages currently must be created using ADT. |
|