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

时间:2011-11-21 18:45:52

标签: actionscript-3 flex air

我需要从.air文件中获取Mac和Linux的本机安装程序。我在Windows上使用AIR 2.5。

我遇到this interesting Windows application将.air文件转换为.exe / .dmg / .rpm。 我不能让它工作,所以其他人使用它并可以证明功能或可以推荐一个类似的应用程序?

感谢。 乌利

4 个答案:

答案 0 :(得分:2)

这是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/

答案 1 :(得分:2)

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

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

答案 2 :(得分:2)

你应该使用adt命令。

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

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

答案 3 :(得分:-2)

为什么不在NativeProcess functionality上查看这篇文章,它描述了创建本机安装程序的过程。引用一些相关部分:

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.

Captive Runtime会做类似的事情,但需要AIR 3或更高版本。