一尘不染

从离子生成非调试apk

angularjs

我正在使用ionic框架为android平台生成apk。

运行后ionic build android,将生成android-debug.apk。如何生成更小,更快的非调试apk?


阅读 293

收藏
2020-07-04

共1个答案

一尘不染

这是我的android发布shell脚本

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"
2020-07-04