@command-center/command-center 0.8.4 → 0.9.0-rc0
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/bin/command-center.js +4 -55
- package/bin/platform-table.generated.js +53 -0
- package/package.json +7 -7
package/bin/command-center.js
CHANGED
|
@@ -20,6 +20,10 @@ import { execSync, spawn } from "node:child_process";
|
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
21
21
|
import { createRequire } from "node:module";
|
|
22
22
|
import path from "node:path";
|
|
23
|
+
import {
|
|
24
|
+
PLATFORM_PACKAGES,
|
|
25
|
+
STATUS_ILLEGAL_INSTRUCTION,
|
|
26
|
+
} from "./platform-table.generated.js";
|
|
23
27
|
|
|
24
28
|
// #######################################
|
|
25
29
|
// Constants
|
|
@@ -31,61 +35,6 @@ const packageMetadata = require("../package.json");
|
|
|
31
35
|
const PACKAGE_VERSION = packageMetadata.version ?? "0.0.0";
|
|
32
36
|
const PLATFORM_KEY = `${process.platform}:${process.arch}`;
|
|
33
37
|
|
|
34
|
-
// STATUS_ILLEGAL_INSTRUCTION (0xC000001D) as an unsigned 32-bit integer.
|
|
35
|
-
// Windows returns this when a process hits an unsupported CPU instruction
|
|
36
|
-
// (e.g. AVX on a system without AVX support, such as Parallels x86_64 emulation).
|
|
37
|
-
const STATUS_ILLEGAL_INSTRUCTION = 3_221_225_501;
|
|
38
|
-
|
|
39
|
-
// TAG_PLATFORM_MATRIX 2025.10.14: Keep entries in sync with scripts/build-all.ts outputs.
|
|
40
|
-
const PLATFORM_PACKAGES = new Map([
|
|
41
|
-
[
|
|
42
|
-
"darwin:arm64",
|
|
43
|
-
{
|
|
44
|
-
packageName: "@command-center/command-center-macos-arm64",
|
|
45
|
-
binaryName: "command-center-macos-arm64",
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
[
|
|
49
|
-
"darwin:x64",
|
|
50
|
-
{
|
|
51
|
-
packageName: "@command-center/command-center-macos-x64",
|
|
52
|
-
binaryName: "command-center-macos-x64",
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
[
|
|
56
|
-
"linux:arm64",
|
|
57
|
-
{
|
|
58
|
-
packageName: "@command-center/command-center-linux-arm64",
|
|
59
|
-
binaryName: "command-center-linux-arm64",
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
[
|
|
63
|
-
"linux:x64",
|
|
64
|
-
{
|
|
65
|
-
packageName: "@command-center/command-center-linux-x64",
|
|
66
|
-
binaryName: "command-center-linux-x64",
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
|
-
"win32:x64",
|
|
71
|
-
{
|
|
72
|
-
packageName: "@command-center/command-center-win-x64",
|
|
73
|
-
binaryName: "command-center-win-x64.exe",
|
|
74
|
-
// On-demand fallback: only downloaded if the primary binary crashes with
|
|
75
|
-
// STATUS_ILLEGAL_INSTRUCTION (no AVX support). See file header for details.
|
|
76
|
-
fallbackPackageName: "@command-center/command-center-win-x64-baseline",
|
|
77
|
-
fallbackBinaryName: "command-center-win-x64-baseline.exe",
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
[
|
|
81
|
-
"win32:arm64",
|
|
82
|
-
{
|
|
83
|
-
packageName: "@command-center/command-center-win-arm64",
|
|
84
|
-
binaryName: "command-center-win-arm64.exe",
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
]);
|
|
88
|
-
|
|
89
38
|
// #######################################
|
|
90
39
|
// Utility Functions
|
|
91
40
|
// #######################################
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Generated from scripts/platforms.ts. Do not edit by hand.
|
|
2
|
+
// Source: packages/command-center-public-package/scripts/platforms.ts
|
|
3
|
+
|
|
4
|
+
// STATUS_ILLEGAL_INSTRUCTION (0xC000001D) as unsigned 32-bit.
|
|
5
|
+
// Windows returns this on CPUs without AVX support.
|
|
6
|
+
export const STATUS_ILLEGAL_INSTRUCTION = 3_221_225_501;
|
|
7
|
+
|
|
8
|
+
export const PLATFORM_PACKAGES = new Map([
|
|
9
|
+
[
|
|
10
|
+
"darwin:arm64",
|
|
11
|
+
{
|
|
12
|
+
packageName: "@command-center/command-center-macos-arm64",
|
|
13
|
+
binaryName: "command-center-macos-arm64",
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"darwin:x64",
|
|
18
|
+
{
|
|
19
|
+
packageName: "@command-center/command-center-macos-x64",
|
|
20
|
+
binaryName: "command-center-macos-x64",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
"linux:arm64",
|
|
25
|
+
{
|
|
26
|
+
packageName: "@command-center/command-center-linux-arm64",
|
|
27
|
+
binaryName: "command-center-linux-arm64",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"linux:x64",
|
|
32
|
+
{
|
|
33
|
+
packageName: "@command-center/command-center-linux-x64",
|
|
34
|
+
binaryName: "command-center-linux-x64",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
"win32:x64",
|
|
39
|
+
{
|
|
40
|
+
packageName: "@command-center/command-center-win-x64",
|
|
41
|
+
binaryName: "command-center-win-x64.exe",
|
|
42
|
+
fallbackPackageName: "@command-center/command-center-win-x64-baseline",
|
|
43
|
+
fallbackBinaryName: "command-center-win-x64-baseline.exe",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
"win32:arm64",
|
|
48
|
+
{
|
|
49
|
+
packageName: "@command-center/command-center-win-arm64",
|
|
50
|
+
binaryName: "command-center-win-arm64.exe",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@command-center/command-center",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0-rc0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Binary distribution of UpToSpeed Command Center",
|
|
6
6
|
"bin": {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@command-center/command-center-linux-arm64": "0.
|
|
27
|
-
"@command-center/command-center-linux-x64": "0.
|
|
28
|
-
"@command-center/command-center-macos-arm64": "0.
|
|
29
|
-
"@command-center/command-center-macos-x64": "0.
|
|
30
|
-
"@command-center/command-center-win-arm64": "0.
|
|
31
|
-
"@command-center/command-center-win-x64": "0.
|
|
26
|
+
"@command-center/command-center-linux-arm64": "0.9.0-rc0",
|
|
27
|
+
"@command-center/command-center-linux-x64": "0.9.0-rc0",
|
|
28
|
+
"@command-center/command-center-macos-arm64": "0.9.0-rc0",
|
|
29
|
+
"@command-center/command-center-macos-x64": "0.9.0-rc0",
|
|
30
|
+
"@command-center/command-center-win-arm64": "0.9.0-rc0",
|
|
31
|
+
"@command-center/command-center-win-x64": "0.9.0-rc0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {}
|
|
34
34
|
}
|