npm install -g cordova ionic
ionic -v
ionic start ionicdemo01 tabs
ionic serve
ionic g component acionsheet
ionic g page news
ionic cordova resources
ionic cordova resources android
ionic cordova resources ios
ionic cordova platform rm ios
ionic cordova platform rm android
ionic cordova platform add ios
ionic cordova platform add android
ionic cordova build android
ionic cordova build android --release
keytool -genkey -v -keystore cl.keystore -alias cl.keystore -keyalg RSA -validity 20000
说明:
-genkey 产生密钥
-keystore cl.keystore 证书的文件名
-alias cl.keystore证书的别名
-keyalg RSA 使用RSA算法对签名加密
-validity 20000该数字证书的有效期
C:\Program Files\Java\jdk1.8.0_71\bin
jarsigner -verbose -digestalg SHA1 -sigalg MD5withRSA -tsa http://sha256timestamp.ws.symantec.com/sha256/timestamp -keystore cl.keystore -signedjar app.apk app-release-unsigned.apk cl.keystore
说明:
jarsigne 是工具名称
-verbose 表示将签名过程中的详细信息打印出来
-digestalg SHA1 -sigalg MD5withRSA -tsa http://sha256timestamp.ws.symantec.com/sha256/timestamp 时间戳
-keystore cl.keystore 之前生成的证书
-signedjar icl.apk 签名后的apk
android-release-unsigned.apk 需要签名的apk
cl.keystore 证书的别名
npm rebuild node-sass
ionic cordova emulate ios -lcs
ionic cordova build ios