@pmate/cli 0.35.7 → 0.35.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -18387,8 +18387,8 @@ function parseAndroidSigningEnv(values) {
18387
18387
  return { keystore, storePassword: values.ANDROID_KEYSTORE_PASSWORD, alias: values.ANDROID_KEY_ALIAS, keyPassword: values.ANDROID_KEY_PASSWORD, certificateSha256 };
18388
18388
  }
18389
18389
  function verifyAndroidSigningCertificate(output, expected) {
18390
- const digests = [...output.matchAll(/Signer #\d+ certificate SHA-256 digest:\s*([0-9a-f:]+)/gi)].map((match) => match[1].replace(/:/g, "").toUpperCase());
18391
- if (digests.length !== 1 || digests[0] !== expected) throw new Error("APK signing certificate does not match ANDROID_SIGNING_CERT_SHA256; upload stopped");
18390
+ const digests = [...output.matchAll(/^(?:Signer #\d+|V\d+(?:\.\d+)? Signer):? certificate SHA-256 digest:\s*([0-9a-f:]+)/gmi)].map((match) => match[1].replace(/:/g, "").toUpperCase());
18391
+ if (!digests.length || digests.some((digest) => digest !== expected)) throw new Error("APK signing certificate does not match ANDROID_SIGNING_CERT_SHA256; upload stopped");
18392
18392
  }
18393
18393
  async function signAndroidApk(apkPath, signing) {
18394
18394
  const tool = findAndroidSdkTool("apksigner");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmate/cli",
3
- "version": "0.35.7",
3
+ "version": "0.35.8",
4
4
  "description": "CLI utilities for the pMate project",
5
5
  "license": "MIT",
6
6
  "bin": {