开发者

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

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 runtim开发者_如何转开发e 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.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜