Copy and paste following commands in a file named as release.bat. When ready to release, execute “release.bat” on the command prompt and you should have an APK file created for releasing it to playstore. Following are key points to be noted:
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
Place following code in a release.bat file in the home directory of Ionic App and, execute “release.bat” from the home directory.
cmd /c cordova build --release android
cmd /c echo <keystore password>|jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <private keystore filename> <path_to_apk_generated_using_cordova_build>gt; <alias name>
cmd /c del <apk file to be released to playstore>
cmd /c zipalign.exe -v 4 <path_to_apk_generated_using_cordova_build> <apk file to be released to playstore>
Last updated: 3rd May, 2024 Have you ever wondered why some machine learning models perform…
Last updated: 2nd May, 2024 The success of machine learning models often depends on the…
When working on a machine learning project, one of the key challenges faced by data…
Last updated: 1st May, 2024 The bias-variance trade-off is a fundamental concept in machine learning…
Last updated: 1st May, 2024 As a data scientist, understanding the nuances of various cost…
Last updated: 1st May, 2024 In this post, you will learn the concepts related to…