@rightkit/release 0.2.60 → 0.2.61

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.
@@ -17,7 +17,11 @@ export function isolatedCargoMetadataEnv(cargoHome, env = process.env) {
17
17
  }
18
18
 
19
19
  export function cargoExecutable(platform = process.platform) {
20
- return platform === "win32" ? "cargo.exe" : "cargo";
20
+ return platform === "win32" ? "rustup" : "cargo";
21
+ }
22
+
23
+ export function cargoArguments(args, platform = process.platform) {
24
+ return platform === "win32" ? ["run", "stable", "cargo", ...args] : args;
21
25
  }
22
26
 
23
27
  export function validateRightKitCargoContract(root, publishedVersions, label = path.basename(root)) {
@@ -77,7 +81,7 @@ export function assertNoRightKitCargoOverrides(manifestPath, repoRoot, label) {
77
81
  function readCargoManifestDependencies(manifestPath, cargoHome, label) {
78
82
  const result = spawnSync(
79
83
  cargoExecutable(),
80
- ["metadata", "--no-deps", "--offline", "--format-version", "1", "--manifest-path", manifestPath],
84
+ cargoArguments(["metadata", "--no-deps", "--offline", "--format-version", "1", "--manifest-path", manifestPath]),
81
85
  {
82
86
  cwd: path.dirname(manifestPath),
83
87
  encoding: "utf8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/release",
3
- "version": "0.2.60",
3
+ "version": "0.2.61",
4
4
  "description": "Portable Right Suite release CLI/SDK: signed installers, updater artifacts, patch/update routing, hardening, R2 publish, and RightApps registration.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,6 +8,7 @@ import test, { after } from "node:test";
8
8
  import {
9
9
  assertNoRightKitCargoOverrides,
10
10
  assertPublishedRightKitCargoDependencies,
11
+ cargoArguments,
11
12
  cargoExecutable,
12
13
  validateRightKitCargoContract,
13
14
  } from "./cargo-contract.mjs";
@@ -464,7 +465,7 @@ test("RightKit exposes one current version manifest", () => {
464
465
  "@rightkit/legal": "0.3.0",
465
466
  "@rightkit/legal-ui": "0.1.1",
466
467
  "@rightkit/license": "0.1.6",
467
- "@rightkit/release": "0.2.60",
468
+ "@rightkit/release": "0.2.61",
468
469
  "@rightkit/qa": "0.2.0",
469
470
  });
470
471
  assert.deepEqual(versions.legacyNpm, {
@@ -495,8 +496,9 @@ test("RightKit exposes one current version manifest", () => {
495
496
  getCurrentCargoVersionContract();
496
497
  });
497
498
 
498
- test("Cargo metadata uses the native Windows executable", () => {
499
- assert.equal(cargoExecutable("win32"), "cargo.exe");
499
+ test("Cargo metadata uses native rustup on Windows", () => {
500
+ assert.equal(cargoExecutable("win32"), "rustup");
501
+ assert.deepEqual(cargoArguments(["metadata"], "win32"), ["run", "stable", "cargo", "metadata"]);
500
502
  assert.equal(cargoExecutable("darwin"), "cargo");
501
503
  });
502
504
 
@@ -18,7 +18,7 @@
18
18
  "@rightkit/legal": "0.3.0",
19
19
  "@rightkit/legal-ui": "0.1.1",
20
20
  "@rightkit/license": "0.1.6",
21
- "@rightkit/release": "0.2.60",
21
+ "@rightkit/release": "0.2.61",
22
22
  "@rightkit/qa": "0.2.0"
23
23
  },
24
24
  "legacyNpm": {