【问题标题】:Adobe AIR - .air to .exe/.dmg/.rpmAdobe AIR - .air 到 .exe/.dmg/.rpm
【发布时间】:2011-11-21 18:45:51
【问题描述】:

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

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

谢谢。 乌力

【问题讨论】:

    标签: actionscript-3 apache-flex air


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        【解决方案3】:

        你应该使用 adt 命令。

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

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

        【讨论】:

          【解决方案4】:

          为什么不看看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 或更高版本。

          【讨论】:

          • NativeProcess 类用于启动本机进程(该文章讨论了在安装程序中打包本机 mac/win 可执行文件并从 AIR 应用程序调用它)并且是蛮力的方法在 ANE 出现之前这种事情。 Captive runtime 支持仅在 AIR 3 上可用,不支持 Linux,您需要将应用程序打包在 mac 上以构建本机 mac 应用程序(对于 windows 也是如此)
          • @32bitkid 作为 NativeProcess 功能的一部分,您可以创建 Native 安装程序。你对 Linux 的看法是对的。我错过了问题的那一部分。
          • NativeProcess 功能与创建捆绑运行时应用程序或独立可执行安装程序的过程无关。我认为您对此感到困惑,因为 NativeProcess 函数明确取决于将您的 AIR 应用程序打包为本机安装程序/可执行文件。
          • @Ascension Systems 你是对的;我的帖子中有一个不清楚的区别。
          猜你喜欢
          • 2011-05-26
          • 2012-05-26
          • 1970-01-01
          • 2014-09-16
          • 2010-09-15
          • 2012-05-12
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多