Windows 10 Ionic build version like android .apk file?

I have succeffully install ionic app on my windows. But How can I get a dev app version like .apk file in android?
Is there any step by step guide to generate specific file(may be bat or whatever)

Hello,

Check that every thing in config.xml is set to your needs. Take care of widget id.

yes, here https://ionicframework.com/docs/intro/deploying/

Once: Create key. Keep it safe, without you can not update your app anymore.

  1. Create app:
  2. sign your app with jarsigner and your key
  3. zipalign your app, here your app gets myname.apk

example run in cmd, use your paths to the tools:

“C:\Program Files\Java\jdk1.8.0_131\bin\keytool.exe” -genkey -v -keystore mykey-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias mykey-alias

ionic cordova build android --prod --release

“C:\Program Files\Java\jdk1.8.0_131\bin\jarsigner.exe” -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore myapp-key.jks android-release-unsigned.apk myapp-alias

C:\Users\admin\AppData\Local\Android\sdk\build-tools\26.0.0\zipalign.exe -v 4 android-release-unsigned.apk bestappevername.apk

Best reagards, anna-liebt

1 Like