Adobe AIR - .air to .exe/.dmg/.rpm



我需要从。air文件中获得Mac和Linux的本地安装程序。我用的是Windows,用的是AIR 2.5。

我遇到了这个有趣的Windows应用程序来转换。air文件到。exe/。dmg/。rpm。我不能得到它的工作,所以有人使用它,可以证明的功能或可以推荐一个类似的应用程序?

谢谢。乌里

这是adobe的一篇文章,可以帮助你完成这里要做的事情:

http://help.adobe.com/en_us/air/build/ws789ea67d3e73a8b22388411123785d839c - 8000. - html

我不确定是否有其他应用程序可以为您自动执行此过程。当这个功能第一次处于测试阶段时,有几个,但我认为它们基本上已经消失或不兼容了。查看这里的教程:

http://bishoponvsto.wordpress.com/2010/02/23/adobe-air-2beta-2-to-exe-packaging-air-app-in-windows-executable/

来自Air文档:"您必须在与您想要生成的本机安装程序文件相同的操作系统上使用ADT。"

我在Mac上开发,并通过bootcamp运行Windows,通过这种设置,我已经能够为两个操作系统创建本地安装程序。另外值得注意的是,Adobe已经放弃了对Linux的支持,因为v2.6,所以这可能会影响到您构建.rpm

的麻烦程度。

你应该使用adt命令。

adt -package -target native myApp.dmg myApp.air for MAC

adt -package -target native myApp.exe myApp.air fr Windows

为什么不看看这篇关于NativeProcess功能的文章呢?它描述了创建本机安装程序的过程。引用相关部分:

To package the application, invoke the ADT application using syntax to package a native installer application version.
You must run ADT on the same operating system as the target installer application. To generate a DMG file, run ADT on Mac OS. To generate an EXE installer file, run ADT on Windows.
For example, the following command packages a DMG file on Mac OS:
adt -package -storetype pkcs12 -keystore myCert.p12 -target native NativeProcessTest.dmg NativeProcessTest-app.xml NativeProcessTest.swf NativeApps/Mac/bin/echoTestMac icons
Before running this command, open the Terminal application and navigate to the output directory for your Flex project. Adjust the following:
    The path to the ADT application in the Flex SDK
    The name and path of the signing certificate (given as myCert.p12 in this example)
For example, the following command packages an EXE installer file on Windows:
adt -package -storetype pkcs12 -keystore myCert.p12 -target native NativeProcessTest.exe NativeProcessTest-app.xml NativeProcessTest.swf NativeApps/Windows/bin/echoTestWindows icons
Before running this command, open a command line session and navigate to the output directory for your Flex project. Adjust the following:
    The path to the ADT application in the Flex SDK
    The name and path of the signing certificate (given as myCert.p12 in this example)
For more information on using ADT and on using signing certificates, refer to "Packaging an AIR application in a native installer" in Building Adobe AIR applications.

自保运行时也会做类似的事情,但需要AIR 3或更高版本。