In the command line run
ionic cordova platform add android
ionic cordova resources
ionic cordova prepare android
ionic cordova build android --prod --release
ionic build android --release
keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
Example
keytool -genkey -v -keystore sodasulf-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias sodasulf
Run
keytool -genkey -v -keystore my-release-key.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias alias_name
Example
keytool -genkey -v -keystore sodasulf-key.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias sodasulf
Change "my-release.keystore" and "alias_name" to match your app and preferences.
Keep this file in a safe place. If you lose it you may be unable to upload revisions of your app to the store.
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore sodasulf-key.keystore G:\SodaSulfApp\platforms\android\app\build\outputs\apk\release\sodasulf.apk sodasulf
Example
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore sodasulf-key.keystore G:\SodaSulfApp\sodasulf.apk sodasulf
*Change "my-release-key.keystore" and "alias_name" to match your app. You may also need to change the name of the apk file.*
(absolute path instead of relative)
You may need to change the name of the apk file. The signed apk will be in the main folder unless you specify a different folder.