Sunday 17 January 2016

Post 38: Pulbish Ionic app to google play store

cordova plugin rm cordova-plugin-console
cordova build --release android
If you have already the key then skip this step (keep in mind to save that file, otherwise you can not update your app).
keytool -genkey -v -keystore my-release-key.keystore -alias myApp -keyalg RSA -keysize 2048 -validity 10000
(if you can't remember the information you put in there you can run this command)
keytool -keystore formconnect.keystore -list -v
Go to the /platform/android/build/outputs/apk/ and copy the file android-release-unsigned.apk to root folder
cd to root folder
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk myApp
copy my-release-key.keystore and android-release-unsigned.apk to android-sdk-linux version folder (android-sdk-linux/build-tools -> select the version you want)
cd to that folder
./zipalign -v 4 android-release-unsigned.apk myApp.apk
After you have done this, you can upload it to google play store.

No comments:

Post a Comment

Tweet