Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open the Android Signing Wizard from a batch file

How can I display the dialog appearing when clicking in Android Studio (IntelliJ) on Build->Generate Signed APK... from a batch file?

I do not want to have a command-line interface for inserting the passwords, I want to display the colorful dialog. There are several "solution vectors", none of which I succeeded to follow:

  1. Find the executable delivered by Android and invoke it from the batch file
    • I did not find it.
  2. Check if there is a general mechanism for IntelliJ to invoke action from the command line
    • I found the Command Line Tools but did not understand if they are what I want and how to use them.

EDIT: Opening the dialog from batch, a python script or from gradle would also be fine

like image 428
PhilLab Avatar asked Mar 10 '15 08:03

PhilLab


1 Answers

Based on information found in the JetBrains article, there is no certain command line to execute this. Of course it is possible to start the program with the "start" command, but other than that, it isn't able to be done.

On this, last, page of the Wizard, specify the output directory for the generated Android Package. Optionally, have IntelliJ IDEA obfuscate the application through integration with the ProGuard built-in tool. (Quote shows how it is mandatory to use the GUI, not a command line, to generate.)

Site: https://www.jetbrains.com/idea/help/generate-signed-apk-wizard.html

like image 116
DragonZeith Avatar answered Oct 02 '22 14:10

DragonZeith