@pmate/cli 0.35.7 → 0.35.9

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -17623,7 +17623,7 @@ async function buildDesktop(args) {
17623
17623
  (0, import_node_fs18.cpSync)(templateDir, appDir, { recursive: true });
17624
17624
  (0, import_node_fs18.writeFileSync)(import_node_path23.default.join(appDir, "desktop-config.json"), JSON.stringify({ app: c.app, productName: c.productName, origin: c.origin, authOrigins: c.authOrigins, bundleId: c.bundleId }));
17625
17625
  (0, import_node_fs18.writeFileSync)(import_node_path23.default.join(appDir, "resource-manifest.json"), JSON.stringify(manifest, null, 2));
17626
- (0, import_node_fs18.writeFileSync)(import_node_path23.default.join(appDir, "package.json"), JSON.stringify({ name: c.bundleId.replace(/\./g, "-"), version: c.version, description: `${c.productName} desktop application`, author: "PMate", main: "main.cjs", dependencies: { "@pmate/chat-sdk": "0.11.1" } }));
17626
+ (0, import_node_fs18.writeFileSync)(import_node_path23.default.join(appDir, "package.json"), JSON.stringify({ name: c.bundleId.replace(/\./g, "-"), version: c.version, description: `${c.productName} desktop application`, author: "PMate", main: "main.cjs", dependencies: { "@pmate/chat-sdk": "0.11.7" } }));
17627
17627
  await runBuildCommand(["npm", "install", "--omit=dev", "--no-audit", "--no-fund"], appDir);
17628
17628
  const cache = import_node_path23.default.join((0, import_node_os9.homedir)(), ".cache", "pmate", "electron", `${ELECTRON_VERSION}-${BUILDER_VERSION}`);
17629
17629
  (0, import_node_fs18.mkdirSync)(cache, { recursive: true });
@@ -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.9",
4
4
  "description": "CLI utilities for the pMate project",
5
5
  "license": "MIT",
6
6
  "bin": {