@rightkit/release 0.2.28 → 0.2.30

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,36 +1,39 @@
1
- {
2
- "schema": 1,
3
- "packageManager": "pnpm@11.12.0",
4
- "npm": {
5
- "@rightkit/legal": "0.2.0",
6
- "@rightkit/license": "0.1.5",
7
- "@rightkit/logs": "0.1.3",
8
- "@rightkit/platform-ui": "0.1.0",
9
- "@rightkit/qa": "0.1.0",
10
- "@rightkit/release": "0.2.26",
11
- "@rightkit/tauri": "0.1.0",
12
- "@rightkit/updates": "0.2.3"
13
- },
14
- "stagedNpm": {
15
- "@rightkit/legal": "0.3.0",
16
- "@rightkit/license": "0.1.6",
17
- "@rightkit/release": "0.2.28",
18
- "@rightkit/legal-ui": "0.1.0"
19
- },
20
- "cargo": {
21
- "rightkit-license": "0.1.2",
22
- "rightkit-logs": "0.1.0",
23
- "rightkit-process": "0.1.0",
24
- "rightkit-tauri": "0.1.0"
25
- },
26
- "stagedCargo": {
27
- "rightkit-license": "0.1.3",
28
- "rightkit-tauri": "0.1.1"
29
- },
30
- "swift": {
31
- "rightkit-swift": {
32
- "url": "https://github.com/bogusyogi/rightkit-swift.git",
33
- "version": "0.1.0"
34
- }
35
- }
36
- }
1
+ {
2
+ "schema": 1,
3
+ "packageManager": "pnpm@11.12.0",
4
+ "npm": {
5
+ "@rightkit/legal": "0.2.0",
6
+ "@rightkit/license": "0.1.5",
7
+ "@rightkit/logs": "0.1.3",
8
+ "@rightkit/platform-ui": "0.1.0",
9
+ "@rightkit/qa": "0.1.0",
10
+ "@rightkit/release": "0.2.29",
11
+ "@rightkit/tauri": "0.1.0",
12
+ "@rightkit/updates": "0.2.3"
13
+ },
14
+ "stagedNpm": {
15
+ "@rightkit/legal": "0.3.0",
16
+ "@rightkit/legal-ui": "0.1.0",
17
+ "@rightkit/license": "0.1.6",
18
+ "@rightkit/release": "0.2.30"
19
+ },
20
+ "legacyNpm": {
21
+ "@rightkit/release": ["0.2.22"]
22
+ },
23
+ "cargo": {
24
+ "rightkit-license": "0.1.2",
25
+ "rightkit-logs": "0.1.0",
26
+ "rightkit-process": "0.1.0",
27
+ "rightkit-tauri": "0.1.0"
28
+ },
29
+ "stagedCargo": {
30
+ "rightkit-license": "0.1.3",
31
+ "rightkit-tauri": "0.1.1"
32
+ },
33
+ "swift": {
34
+ "rightkit-swift": {
35
+ "url": "https://github.com/bogusyogi/rightkit-swift.git",
36
+ "version": "0.1.0"
37
+ }
38
+ }
39
+ }
package/pub-upload.mjs DELETED
@@ -1,100 +0,0 @@
1
- #!/usr/bin/env node
2
- import { accessSync, statSync } from "node:fs";
3
- import path from "node:path";
4
- import { spawnSync } from "node:child_process";
5
-
6
- const ACCOUNT_ID = "03ae77ccd7a07bcbb2dcfde47fa7ba3a";
7
- const BUCKETS = new Map([
8
- ["public", "rightapps-downloads"],
9
- ["private", "rightapps-updates"],
10
- ]);
11
- // Wrangler always runs remotely through a package runner; which one exists is machine-specific
12
- // (a node install without npm/npx is normal when pnpm is the pinned package manager).
13
- const RUNNERS = [
14
- { cmd: "npx", prefix: [] },
15
- { cmd: "pnpm", prefix: ["dlx"] },
16
- ];
17
-
18
- const [, , localFile, r2Key, bucketAlias = "public"] = process.argv;
19
- if (!localFile || !r2Key) {
20
- console.error("Usage: node upload-large.mjs <localFile> <r2Key> [public|private]");
21
- process.exit(1);
22
- }
23
-
24
- const bucket = BUCKETS.get(bucketAlias);
25
- if (!bucket) {
26
- console.error(`upload-large: invalid bucket alias ${bucketAlias}; expected public|private`);
27
- process.exit(1);
28
- }
29
-
30
- try {
31
- accessSync(localFile);
32
- } catch {
33
- console.error(`upload-large: missing local file: ${localFile}`);
34
- process.exit(1);
35
- }
36
-
37
- const fileSize = statSync(localFile).size;
38
- const object = `${bucket}/${r2Key}`;
39
- const wranglerArgs = ["wrangler@4", "r2", "object", "put", object, "--file", path.resolve(localFile), "--remote"];
40
- const env = cleanCloudflareEnv(process.env);
41
-
42
- console.log(`Uploading ${path.basename(localFile)} (${(fileSize / 1024 / 1024).toFixed(1)} MB) -> ${object}`);
43
- console.log(`wrangler r2 object put ${object} --file ${path.resolve(localFile)} --remote`);
44
-
45
- // Resolve the package runner before the dry-run exit: a release box without one cannot upload,
46
- // and that must fail here rather than after a signed build has already been produced.
47
- const runner = resolveRunner(env);
48
- if (!runner) {
49
- console.error(
50
- "upload-large: no package runner found. Tried: " +
51
- `${RUNNERS.map((entry) => [entry.cmd, ...entry.prefix].join(" ")).join(", ")}. ` +
52
- "Install one, or set RIGHT_RELEASE_WRANGLER_RUNNER (e.g. \"pnpm dlx\").",
53
- );
54
- process.exit(1);
55
- }
56
- console.log(`runner: ${[runner.cmd, ...runner.prefix].join(" ")}`);
57
-
58
- if (process.env.RIGHT_RELEASE_UPLOAD_DRY_RUN === "1") {
59
- process.exit(0);
60
- }
61
-
62
- const result = spawnSync(runner.cmd, [...runner.prefix, ...wranglerArgs], {
63
- env,
64
- stdio: "inherit",
65
- shell: process.platform === "win32",
66
- windowsHide: true,
67
- });
68
-
69
- if (result.error) {
70
- console.error(`upload-large: failed to start wrangler: ${result.error.message}`);
71
- process.exit(1);
72
- }
73
- process.exit(result.status ?? 1);
74
-
75
- function resolveRunner(env) {
76
- const override = process.env.RIGHT_RELEASE_WRANGLER_RUNNER?.trim();
77
- if (override) {
78
- const [cmd, ...prefix] = override.split(/\s+/);
79
- return { cmd, prefix };
80
- }
81
- for (const candidate of RUNNERS) {
82
- const probe = spawnSync(candidate.cmd, ["--version"], {
83
- env,
84
- stdio: "ignore",
85
- shell: process.platform === "win32",
86
- windowsHide: true,
87
- });
88
- if (!probe.error && probe.status === 0) return candidate;
89
- }
90
- return null;
91
- }
92
-
93
- function cleanCloudflareEnv(source) {
94
- const env = { ...source, CLOUDFLARE_ACCOUNT_ID: source.CLOUDFLARE_ACCOUNT_ID || ACCOUNT_ID };
95
- delete env.CLOUDFLARE_API_KEY;
96
- delete env.CLOUDFLARE_EMAIL;
97
- delete env.CF_API_KEY;
98
- delete env.CF_EMAIL;
99
- return env;
100
- }