I have tried using both Windows PowerShell and cygwin to create an AIR application from the command line. (The examples here are from PowerShell, but cygwin yields the same results.) The only way it works is if the Main.swf file is in the same directory as where the application is being run. For clarity's sake, my current directory structure is:
sanitized
|
|- target
| |
| |- Main-app.xml
| |- Main.swf
|
|- certificate.p12
Commands I've tried, and their results:
C:\sanitized> adt -package -storetype pkcs12 -keystore certificate.p12 target\Main.air 'C:\sanitized\target\Main-app.xml' 'C:\sanitized\target\Main.swf'
password:
C:\sanitized\target\Main-app.xml(40): error 302: Root content Main.swf is missing from package
This is my main problem. I do not want to have to run adt in the 'target' directory, or copy my SWF files to my root directory, to run adt properly. Why can't it resolve paths?
I also tried it with just the 'target' directory:
C:\sanitized> adt -package -storetype pkcs12 -keystore certificate.p12 target\Main.air 'C:\sanitized\target\Main-app.xml' target
password:
C:\sanitized\target\Main-app.xml(40): error 302: Root content Main.swf is missing from package
I have tried various combinations of files and directories, with and without the -C and -e arguments. Any suggestions would be appreciated. Thanks!!