从ionic生成非调试apk [英] Generate non-debug apk from ionic
本文介绍了从ionic生成非调试apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用离子框架为Android平台生成apk。
I am using ionic framework to generate apk for android platform.
运行 ionic build android
后, android-debug.apk生成。如何生成更小更快的非调试apk?
After running ionic build android
, an android-debug.apk is generated. How can I generate a non-debug apk which is smaller and faster?
推荐答案
这是我的android发布shell脚本
This is my android release shell script
IFY
clear
gulp
ionic build --release android
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore "path/to/your/keystore" "platforms/android/build/outputs/apk/android-release-unsigned.apk" "keystore alias" -storepass xxx -keypass xxx
/path/to/android-sdk/build-tools/23.0.2/zipalign -v 4 "platforms/android/build/outputs/apk/android-release-unsigned.apk" "android-release.apk"
rm "platforms/android/build/outputs/apk/android-release-unsigned.apk"
这篇关于从ionic生成非调试apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文