Skip to content

Package an Adobe AIR application in Visual Studio Code

Josh Tynjala edited this page Nov 27, 2017 · 26 revisions

The ActionScript & MXML extension for Visual Studio Code supports packaging Adobe AIR applications for deployment to Windows, macOS, iOS, and Android. This obviously includes exporting a release build that can be submitted to app stores and installed by users, but you can also package an app for debugging on mobile devices using either a wi-fi or a USB connection.

To package an Adobe AIR application in Visual Studio Code, you first need to create an AIR desktop project or an AIR mobile project.

Prerequisites

Install the asconfigc utility from npm. This requires Node.js version 6 or newer.

npm install -g asconfigc

The ActionScript & MXML extension will run asconfigc, which reads the project's asconfig.json file and run both the compiler and the AIR Developer Tool (adt) from your workspace's SDK using the specified options.

AIR Desktop

Start by creating a new project for an Adobe AIR desktop application.

Go to the Tasks menu and select Run Task...

A list of available tasks for your current workspace will appear, and you should see a few tasks for Adobe AIR.

Screenshot of packaging tasks for AIR desktop in Visual Studio Code

If you don't see any Adobe AIR tasks, you may have forgotten to create an asconfig.json file for your project, or it may not be configured correctly for a desktop application.

You may choose to package an .air file that can be deployed to both Windows or macOS and runs on the shared Adobe AIR runtime, or you create a fully self-contained captive runtime bundle for your current operating system that doesn't require Adobe AIR to be installed separately.

When you select a task, the extension will run the compiler and the AIR Developer Tool (adt) from your workspace's SDK using asconfigc.

AIR Mobile

Start by creating a new project for an Adobe AIR mobile application.

Go to the Tasks menu and select Run Task...

A list of available tasks for your current workspace will appear, and you should see several tasks for Adobe AIR.

Screenshot of packaging tasks for AIR mobile in Visual Studio Code

If you don't see any Adobe AIR tasks, you may have forgotten to create an asconfig.json file for your project, or it may not be configured correctly for a mobile application.

You may choose to package an application for either Android or iOS. A debug build can be configured to attach to the debugger in Visual Studio Code over either wi-fi or USB while the app is running on a mobile device. Packaging a release build produces an application that may be published to app stores.

When you select a task, the extension will run the compiler and the AIR Developer Tool (adt) from your workspace's SDK using asconfigc.

Further Reading

Clone this wiki locally