Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: How to automate export unsigned application in a batch file

I am developing a game for Android in Windows Vista environment. I want to automate the exporting unsigned application operation in a batch file. So, I wouldn't have to Right click on the project, go to Android Tools and then select Export Unsigned Application Package... anytime I want to run my project. Thank you.

like image 254
Ömer Avatar asked Apr 11 '09 10:04

Ömer


2 Answers

Here's a nice link: http://www.androidengineer.com/2010/06/using-ant-to-automate-building-android.html, written by Matt Quigley.

In a nutshell:

You create a build.xml file by going to the root path and entering android update project --path ..

This will create a build.xml file. From that point on, you should be able to build an unsigned apk by running ant release.

like image 142
EboMike Avatar answered Sep 24 '22 10:09

EboMike


Android's Eclipse SDK just use Ant behind the scenes for exporting application packages. You could just write an ANT build file and do the export you are trying to, and you will have yourself the task on a batch file.

like image 40
Pablo Santa Cruz Avatar answered Sep 24 '22 10:09

Pablo Santa Cruz