一、环境
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.6
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 25.2.5
Node : v6.9.1
npm : 3.10.8
OS : Windows 10
Environment Variables:
ANDROID_HOME : D:\Programmer\AndroidSDKmange
Misc:
backend : pro
二、命令
创建app
ionic start
创建页面
ionic generate page creat-job-dsd
添加平台
ionic cordova platform add [email protected]
真机测试
ionic cordova run android --livereload
打包
ionic cordova build android --prod --release
签名
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore xxx platforms/android/build/outputs/apk/android-armv7-release-unsigned.apk xxx
压缩
d:\Programmer\AndroidSDKmange\build-tools\25.0.0\zipalign -v 4 platforms/android/build/outputs/apk/android-armv7-release-unsigned.apk xxx.apk