Skip to content

Commit

Permalink
misc: print out apk signature
Browse files Browse the repository at this point in the history
  • Loading branch information
hjiangsu committed Jan 7, 2025
1 parent 8ba0116 commit 40d00d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
mv "$apk" "$unsignedFn"
${ANDROID_HOME}/build-tools/$(ls ${ANDROID_HOME}/build-tools/ | tail -1)/apksigner sign --ks apksign.keystore --ks-pass pass:"${KEYSTORE_PASSWORD}" --out "${apk}" "${unsignedFn}"
shasum -a 256 ${apk} | cut -d " " -f 1 > "$apk".sha256
keytool -printcert -jarfile ${apk}
${ANDROID_HOME}/build-tools/$(ls ${ANDROID_HOME}/build-tools/ | tail -1)/apksigner verify --print-certs ${apk} 2>/dev/null \ | sed -n 's/^Signer #1 certificate SHA-256 digest: \(.*\)/\1/p'
echo "${apk} | $(shasum -a 256 ${apk} | cut -d " " -f 1)"
done
rm apksign.keystore
Expand Down

0 comments on commit 40d00d6

Please sign in to comment.