跳转到内容
bash
apksigner sign \
  --ks newmyapp-renewed.p12 \
  --ks-pass pass: your password
  --ks-key-alias myappkey \
  --key-pass pass: Your password
  --out platforms/android/app/build/outputs/apk/release/app-release-signed.apk \
  platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk

Signing APK with jarsigner (traditional method)

bash
jarsigner -verbose \
  -sigalg SHA256withRSA -digestalg SHA-256 \
  -keystore /workspace/myApp/newmyapp.p12 \
  -storepass your password -keypass your password \
  app-release-unsigned.apk myappkey

Signature verification

bash
# Verify APK Signature
jarsigner -verify -verbose -certs app-release-unsigned.apk

# Viewing the contents of the keystore
keytool -list -v -keystore newmyapp-renewed.p12

# Extract and display certificate information from APK
keytool -printcert -jarfile platforms/android/app/build/outputs/apk/release/app-release-signed.apk

基于 MIT 许可发布