📅  最后修改于: 2022-03-11 14:51:05.611000             🧑  作者: Mango
#generate .keystore file
keytool -genkey -v -keystore app.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
#sign the apk
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore app.keystore app-release-unsigned.apk alias_name
#zip the apk
zipalign -v 4 app-release-unsigned.apk ReleaseSigned.apk