@todesktop/cli 1.9.6 → 1.9.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.
package/README.md CHANGED
@@ -901,6 +901,14 @@ Default: `undefined`.
901
901
 
902
902
  The path to NSIS script to customize installer.
903
903
 
904
+ #### `windows.publisherName` - (optional) array of strings
905
+
906
+ Example: `["ABC Limited"]`.
907
+
908
+ Default: Default to the common name from your code signing certificate.
909
+
910
+ The publisher name, exactly as in your code signing certificate. Several names can be provided. Defaults to common name from your code signing certificate. You should typically not include this property in your configuration unless you wish to transition to a new certificate in the future.
911
+
904
912
  ## Build lifecycle hooks (package.json scripts)
905
913
 
906
914
  Sometimes you want to do something before or during the build process. For example, you might want to run a script before the build starts, or you might want to run a script after the files have been packaged. Our lifecycle hooks provide a way to do this.
@@ -1117,6 +1125,15 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
1117
1125
 
1118
1126
  ## Changelog
1119
1127
 
1128
+ ### v1.9.8
1129
+
1130
+ - Chore: bump dependencies
1131
+ - Add support for `windows.publisherName`
1132
+
1133
+ ### v1.9.7
1134
+
1135
+ - Add support for additional token verification
1136
+
1120
1137
  ### v1.9.6
1121
1138
 
1122
1139
  - Add support for `mas.x64ArchFiles` in config.
package/dist/cli.js CHANGED
@@ -1866,6 +1866,13 @@ var full_default = (context) => {
1866
1866
  extensions: ["nsh"],
1867
1867
  mustBeFile: true
1868
1868
  }
1869
+ },
1870
+ publisherName: {
1871
+ type: "array",
1872
+ items: {
1873
+ type: "string",
1874
+ minLength: 1
1875
+ }
1869
1876
  }
1870
1877
  }
1871
1878
  }
@@ -2295,6 +2302,7 @@ async function uploadApplicationSource({
2295
2302
  config: config2,
2296
2303
  onProgress
2297
2304
  }) {
2305
+ var _a;
2298
2306
  logger_default.debug(
2299
2307
  {
2300
2308
  appId,
@@ -2445,7 +2453,7 @@ async function uploadApplicationSource({
2445
2453
  key: generateS3Key_default({
2446
2454
  appId,
2447
2455
  buildId,
2448
- filenameSuffix: `${appPkgJson.name}.zip`
2456
+ filenameSuffix: `${(_a = appPkgJson.name) == null ? void 0 : _a.replaceAll("/", "")}.zip`
2449
2457
  }),
2450
2458
  onProgress({ loaded, total }) {
2451
2459
  onProgress(loaded / total * 100, loaded);
@@ -2469,7 +2477,7 @@ async function runBuild({
2469
2477
  onBuildFinishedWebhook,
2470
2478
  updateState
2471
2479
  }) {
2472
- var _a;
2480
+ var _a, _b, _c;
2473
2481
  logForCI_default("Getting application information...");
2474
2482
  const primaryUserId = (_a = currentUser()) == null ? void 0 : _a.uid;
2475
2483
  const { config: config2, unprocessedConfig } = getProjectConfig(configPath);
@@ -2498,7 +2506,8 @@ async function runBuild({
2498
2506
  shouldCodeSign: shouldCodeSign !== false,
2499
2507
  shouldRelease: false,
2500
2508
  userId: primaryUserId,
2501
- versionControlInfo: await getVersionControlInfo_default(config2.appPath)
2509
+ versionControlInfo: await getVersionControlInfo_default(config2.appPath),
2510
+ idToken: await ((_b = currentUser()) == null ? void 0 : _b.getIdToken())
2502
2511
  });
2503
2512
  buildId = prepareResult.appData.meta.currentBuildProgress.id;
2504
2513
  buildObserver.subscribe({ appId, buildId, userId: prepareResult.userId });
@@ -2545,7 +2554,8 @@ async function runBuild({
2545
2554
  nodeVersion: config2.nodeVersion,
2546
2555
  npmVersion: config2.npmVersion,
2547
2556
  pnpmVersion: config2.pnpmVersion,
2548
- appBuilderLibVersion: config2.appBuilderLibVersion
2557
+ appBuilderLibVersion: config2.appBuilderLibVersion,
2558
+ idToken: await ((_c = currentUser()) == null ? void 0 : _c.getIdToken())
2549
2559
  });
2550
2560
  } catch (e) {
2551
2561
  throw addErrorMessage(e, "Failed while kicking off build");
@@ -5052,6 +5062,7 @@ async function queueSmokeTest({
5052
5062
  pnpmVersion,
5053
5063
  userId
5054
5064
  }) {
5065
+ var _a;
5055
5066
  try {
5056
5067
  await postToFirebaseFunction_default("queueSmokeTest_HTTP", {
5057
5068
  appId,
@@ -5060,7 +5071,8 @@ async function queueSmokeTest({
5060
5071
  npmVersion,
5061
5072
  pnpmVersion,
5062
5073
  userId,
5063
- contextUserId
5074
+ contextUserId,
5075
+ idToken: await ((_a = currentUser()) == null ? void 0 : _a.getIdToken())
5064
5076
  });
5065
5077
  } catch (e) {
5066
5078
  logger_default.error({ error: e });
@@ -5285,7 +5297,7 @@ var package_default = {
5285
5297
  access: "public"
5286
5298
  },
5287
5299
  name: "@todesktop/cli",
5288
- version: "1.9.6-0",
5300
+ version: "1.9.7",
5289
5301
  license: "MIT",
5290
5302
  author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
5291
5303
  homepage: "https://todesktop.com/cli",
@@ -5322,12 +5334,12 @@ var package_default = {
5322
5334
  "README.md"
5323
5335
  ],
5324
5336
  dependencies: {
5325
- "@sentry/node": "^5.27.2",
5337
+ "@sentry/node": "^8.35.0",
5326
5338
  ajv: "^8.11.2",
5327
5339
  "ajv-formats": "^2.1.1",
5328
5340
  "analytics-node": "^4.0.1",
5329
5341
  archiver: "^5.2.0",
5330
- axios: "^0.21.1",
5342
+ axios: "^1.7.7",
5331
5343
  "better-ajv-errors": "^1.2.0",
5332
5344
  bunyan: "^1.8.14",
5333
5345
  chalk: "^4.1.0",
@@ -5367,7 +5379,7 @@ var package_default = {
5367
5379
  "xdg-basedir": "^4.0.0"
5368
5380
  },
5369
5381
  devDependencies: {
5370
- "@todesktop/shared": "^7.188.64",
5382
+ "@todesktop/shared": "^7.188.80",
5371
5383
  "@types/bunyan": "^1.8.6",
5372
5384
  "@types/is-ci": "^3.0.4",
5373
5385
  "@types/node": "^20.8.4",
@@ -5461,38 +5473,37 @@ var initSentry_default = () => {
5461
5473
  Sentry3.init({
5462
5474
  dsn: TODESKTOP_CLI_SENTRY_DSN
5463
5475
  });
5464
- Sentry3.configureScope((scope) => {
5465
- try {
5466
- scope.setUser({ email: getAuthConfig().email });
5467
- } catch (err) {
5468
- }
5469
- try {
5470
- scope.setContext("os", {
5471
- name: import_os2.default.platform(),
5472
- version: import_os2.default.release()
5473
- });
5474
- } catch (err) {
5475
- }
5476
- try {
5477
- scope.setContext("runtime", {
5478
- name: "Node.js",
5479
- version: process.version
5480
- });
5481
- } catch (err) {
5482
- }
5483
- try {
5484
- scope.setContext("app", {
5485
- app_name: package_default.name,
5486
- app_version: package_default.version
5487
- });
5488
- } catch (err) {
5489
- }
5490
- try {
5491
- const configResult = getProjectConfig();
5492
- scope.setExtra("config", configResult);
5493
- } catch (err) {
5494
- }
5495
- });
5476
+ const scope = Sentry3.getCurrentScope();
5477
+ try {
5478
+ scope.setUser({ email: getAuthConfig().email });
5479
+ } catch (err) {
5480
+ }
5481
+ try {
5482
+ scope.setContext("os", {
5483
+ name: import_os2.default.platform(),
5484
+ version: import_os2.default.release()
5485
+ });
5486
+ } catch (err) {
5487
+ }
5488
+ try {
5489
+ scope.setContext("runtime", {
5490
+ name: "Node.js",
5491
+ version: process.version
5492
+ });
5493
+ } catch (err) {
5494
+ }
5495
+ try {
5496
+ scope.setContext("app", {
5497
+ app_name: package_default.name,
5498
+ app_version: package_default.version
5499
+ });
5500
+ } catch (err) {
5501
+ }
5502
+ try {
5503
+ const configResult = getProjectConfig();
5504
+ scope.setExtra("config", configResult);
5505
+ } catch (err) {
5506
+ }
5496
5507
  };
5497
5508
 
5498
5509
  // src/utilities/onCommand.ts