这是我的build.xml中的一个示例
<mxmlc
file="${SRC_DIR}/Main.mxml"
output="${DEPLOY_DIR}/@{market}.air"
locale="@{locale}"
debug="false"
optimize="true">
<arg value="+configname=air"/>
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc" />
</library-path>
</mxmlc>在运行此命令并生成.air文件时,没有产生任何错误,但是当双击.air文件时,我得到了错误消息:
“无法安装应用程序,因为AIR文件已损坏。请尝试从应用程序作者处获取新的AIR文件。”
任何帮助都将不胜感激。
发布于 2010-04-10 23:42:50
如何做到这一点的一个例子是:http://blog.devsandbox.co.uk/wp-content/uploads/2009/09/example_air_build.xml
发布于 2010-04-08 23:27:19
您需要使用AIR编译器(amxmlc):http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_2.html
不确定他们是否也有用于此的ANT任务,但值得一试。
https://stackoverflow.com/questions/2592350
复制相似问题