packaging air application with air runtime in one installer - windows .exe

有些话、适合烂在心里 提交于 2020-01-14 04:55:08

问题


I've been approved to distribute the adobe air run time. I've been able to a packaged .dmg file without any problems, now I'm trying to create a package of my application with the runtime for windows.

I've followed the same instructions and the windows installer (MyApp 2.0 Installer.exe) is working properly when I double click it form the installer directory that I created.

Now I'm trying to package everything from that directory into one .exe file. I've tried using the standard windows Iexpress, but it doesn't seem to work properly.

I'm just wondering how I should go about creating the final .exe file.


回答1:


It's easy enough, but you need a license from Adobe to be able to distribute Air with your application. Personally, I'm not a fan of distributing Air in the installer because of the extra filesize it adds.




回答2:


Here's how you can create a native .exe installer:

Install the SDK:

  1. If you haven't already done so, download the AIR SDK and extract it to C:\AIR

  2. Hit Win+R, and type control.exe sysdm.cpl,System,3 - press OK

  3. Click Environment Variables...

  4. In the lower pane (System variables), find Path and click Edit...

  5. On the end, add ;C:\AIR and hit OK all the way out

Compile:

  1. Open a Command Prompt window, and cd to the location of your .air file

  2. Run this command:

adt -package -target native "Output file.exe" "Input file.air"

N.B.:

  • You must use ADT on the same operating system as that of the native installer file you want to generate. So, to create an EXE file for Windows, run ADT on Windows. To create a DMG file for Mac OS, run ADT on Mac OS. To create a DEB or RPG file for Linux, run ADT from the AIR 2.6 SDK on Linux.
  • Just as your .air file can be signed, your .exe file can be signed too

  • For more information, see the Packaging a desktop native installer article on Adobe's website



来源:https://stackoverflow.com/questions/6964197/packaging-air-application-with-air-runtime-in-one-installer-windows-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!