@rightkit/release 0.2.77 → 0.2.78

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.
@@ -1,6 +1,6 @@
1
1
  import { createHash } from "node:crypto";
2
2
  import { mkdirSync, readFileSync, realpathSync, statSync, writeFileSync } from "node:fs";
3
- import { dirname, isAbsolute, join, resolve } from "node:path";
3
+ import { basename, dirname, isAbsolute, join, resolve } from "node:path";
4
4
  import { spawnSync } from "node:child_process";
5
5
  import { RIGHTRELEASE_MANIFEST_SIGNER, signReleaseManifestWithAzure } from "./sign-release-manifest.mjs";
6
6
  import { validateCycloneDxSbom, validateInTotoSlsaProvenance } from "./supply-chain-evidence.mjs";
@@ -73,8 +73,13 @@ function assertGitHubAssetUrl(url) {
73
73
 
74
74
  export function createPortableArchive({ sourceDir, outputPath, commandRunner = spawnSync }) {
75
75
  const source = realpathSync(sourceDir);
76
- mkdirSync(dirname(outputPath), { recursive: true });
77
- const result = commandRunner("tar", ["-a", "-c", "-f", resolve(outputPath), "-C", source, "."], {
76
+ const outputDir = resolve(dirname(outputPath));
77
+ mkdirSync(outputDir, { recursive: true });
78
+ // GNU tar reads a colon in -f as a remote host spec, so an absolute
79
+ // Windows path (C:\...) fails with "Cannot connect to C:". Run from the
80
+ // output directory and pass a bare filename instead.
81
+ const result = commandRunner("tar", ["-a", "-c", "-f", basename(outputPath), "-C", source, "."], {
82
+ cwd: outputDir,
78
83
  encoding: "utf8",
79
84
  windowsHide: true,
80
85
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/release",
3
- "version": "0.2.77",
3
+ "version": "0.2.78",
4
4
  "description": "Portable Right Suite release CLI/SDK: signed native archives, direct bootstrap transactions, immutable GitHub Release upload, R2 bootstrap publication, and add-on adoption.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "@rightkit/logs": "0.1.4",
23
23
  "@rightkit/platform-ui": "0.1.1",
24
24
  "@rightkit/qa": "0.2.1",
25
- "@rightkit/release": "0.2.77",
25
+ "@rightkit/release": "0.2.78",
26
26
  "@rightkit/tauri": "0.1.1",
27
27
  "@rightkit/updates": "0.2.4"
28
28
  },