Huey
Huey

Reputation: 5220

How can I get Cordova to automatically sign release APKs?

In Cordova 5, how can I incorporate zipaligning and signing of the APK using my keystore into the build process?

Using the Ionic Framework, I can specify an ant.properties file that includes the lines below:

key.store=CylonApp.keystore
key.alias=CylonApp

such that running ionic build android --release automatically prepares an APK that can be submitted directly to the Play Store.

Is there an equivalent in Cordova?

Upvotes: 3

Views: 610

Answers (1)

Patrice
Patrice

Reputation: 1444

You can create release-signing.properties in platforms/android and adding the following:

storeFile=<path to="" .keystore="" file="">
storeType=jks
keyAlias=<your key="" alias="">
// optional :
keyPassword=<your-key-password>
storePassword=<your-store-password>

Upvotes: 1

Related Questions