Skip navigation
martin_janik
Currently Being Moderated

adt in batch script

Mar 27, 2012 5:32 AM

Tags: #line #batch #command #adt

Hi, recently I was forced to use adt command line, as we need to sign our installer with a migrate certificate. The problem is we use native installer option, so the workflow goes like this.

 

1. I make a release build of .air file from FlashBuilder, sign it with new cert

2. call adt from command line with -migrate option, which creates the migrated .air file

3. call adt from command line with -package -target native options, which creates an .exe (.dmg) file out of the migrated .air file

 

As the command line calls take a load of arguments, I wanted to create a batch script, that would do both. The problem is the batch script always exits after the first adt call (which is successfull), so this leaves me with having two separate bat files that I need to run one after another manually.

 

Other commands that i put before the first adt call works just fine, so I assume it is the adt that exits the batch somehow. Is there a way to force the adt not to exit, so that the batch script can run on....

 

Thanks.

 
Replies
  • Chris Campbell
    9,455 posts
    May 4, 2010
    Currently Being Moderated
    Apr 16, 2012 4:16 PM   in reply to martin_janik

    Hi Martin,

    How are you calling ADT in the batch file?  Are you prefixing with a "call" statement?

     

    Chris

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points