Under Win configuration Ionic can refer to the July blog: http://www.cnblogs.com/shikelong/p/4480975.html.
According to the July thinking basic can create a ionic project, below I mainly describe how to put the packaged apk signature.
Before you begin
Learn two things first:
- Keytool is an effective security key and certificate management tool. (Refer to this blog post for specific usage: http://blog.csdn.net/tony1130/article/details/5134318)
- Android requires that all programs must have a signature, otherwise the program will not be installed.
Generate commands
注意
: Remember to alias_name
change it.
2048 10000
After executing the above command, you will be prompted to enter some basic information.
Compiling Ionic Android Project
1. Generate Release Package
D:\phones\ionic\testapp\testapp>ionic Build Android-release
2. Sign the APK
D:\phones\ionic\testapp\testapp>jarsigner-verbose-sigalg sha1withrsa-digestalg Sha1-keystore my-release- Key.keystore plateforms\android\build\outputs\apk\android-release-unsigned.apk alias_name
Attention:
my-release-Key.keystore: Must be the same as the name set in Keytool;
Alias_name: must also be the same as the settings in the Keytool;
Ionic developing Android App