I have a script that creates and signs a keystore file for an Android application.
It works fine, but I would prefer it to work without human intervention
what I need to create a keystore:
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
Then I am asked to enter the following values ββmanually using the terminal: cache password, full name, organization unit, organization name, city, state, county code, key password.
what I need to sign the application:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name
Then I am asked to enter a passphrase for the keystore.
In any case, can I pass these values ββas parameters, so does the full script work without any interaction?
PS: I am using ubuntu 14.04 LTS.
Thank you for your time:)
source share