rss twitter

Compile AIR to native .dmg or .exe files with ANT

An upcoming question in publish- & packaging AIR files is "How to convert them to a .dmg or .exe file?" Easily enough, you do not have to do anything else except using a slightly different ANT build task for it. Instead of passing:

XML:
  1. <arg value="${publish_dir}/${air_file}" />
  2. <arg value="${app_descriptor}" />

to the ADT you use:

XML:
  1. <arg value="-target"/>
  2. <arg value="native"/>
  3. <arg value="${publish_dir}/MyApp.dmg" />
  4. <arg value="${app_descriptor}" />


As you can see on the left it works like a charm and a new .dmg installer file has been created. You simply can double click on it and the installer pops up. And well, that´s it!

The same works with .exe by simply changing the file extension. Keep in mind that the AIR runtime environment has to be installed anyway.


2 Responses to “Compile AIR to native .dmg or .exe files with ANT”

  1. venu says:

    i want this software

  2. Tom says:

    Hey,

    where can I get this software? I need to to publish my AIR app as .dmg but from Windows pc.

    Thanks!

Leave a Reply

Powered by WordPress | Free T-Mobile Phones for Sale | Thanks to Palm Pre Blog, Video Game Music and Get Six Pack Abs