5 Replies Last post: Apr 1, 2013 1:15 PM by Alexander Doroshko  
Asking Dumbquestions Newbie 8 posts since
Dec 12, 2012
Currently Being Moderated

Feb 5, 2013 12:50 AM

Run external command before packaging for iOS or Android?

So, I know you can run an external command before launching a build in a simulator, but how can I do this before packaging for iOS or Android?  There doesn't seem to be an interface for adding commands before or after the compilation process, not in the build configuration and not the "Package AIR Application..." dialogue, etc.

 

Any advice?

 

Thanks, adq.

Alexander Doroshko JetBrains 955 posts since
Jun 9, 2009
Currently Being Moderated
Feb 26, 2013 3:20 PM in response to: Asking Dumbquestions
Re: Run external command before packaging for iOS or Android?

Sorry for delay, somehow I missed the thread.

 

Does Flash Builder support your workflow?

 

If your app is pure ActionScript (without Flex) then to enable advanced telemetry you only need to add -advanced-telemetry flag as Additional compiler options at Compiler Options tab of the Flash build configuuration (Project Structure dialog). Make sure that the app is marked as Pure AS (General tab).

This flag is only supported by ActionScript Compiler 2.0, so make sure that 'Prefer ASC 2.0' is enabled at Settings | Compiler | Flex Compiler. Also you need to have AIR SDK with ASC 2.0 overlaid on top of Flex SDK installation.

In the latest IntelliJ IDEA 12.1 EAP it is possible to select AIR SDK (without Flex SDK) at Dependencies tab - AIR SDK with ASC 2.0 contains all libs/tools for pure AS development.

Alexander Doroshko JetBrains 955 posts since
Jun 9, 2009
Currently Being Moderated
Feb 26, 2013 3:30 PM in response to: Asking Dumbquestions
Re: Run external command before packaging for iOS or Android?
IntelliJ's Run/Debug configurations do NOT wait for post-make commands to complete

I'm pretty sure that 'run external tool' or 'run ant target' configured as 'Before launch' at the Flash run configuration dialog is executed before packaging and app start.

Alexander Doroshko JetBrains 955 posts since
Jun 9, 2009
Currently Being Moderated
Apr 1, 2013 1:15 PM in response to: Asking Dumbquestions
Re: Run external command before packaging for iOS or Android?

Indeed, there's a bug with External tasks as 'before launch' option, but it is already fixed in the latest IntelliJ IDEA 12.1 Release Candidate.

More Like This

  • Retrieving data ...