@relay-core/cli 0.7.3 → 0.8.1
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/lib/resolve-binary.js +2 -0
- package/package.json +6 -6
package/lib/resolve-binary.js
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Resolve a RelayCore native binary from the matching @relay-core/binaries-* optional dependency.
|
|
5
|
+
* Linux uses glibc-linked (gnu) builds so the Deno/V8 script engine is included.
|
|
5
6
|
* @param {string} name - e.g. "relay-core-cli" or "relay-core-probe"
|
|
6
7
|
* @returns {string} Absolute path to the binary
|
|
7
8
|
*/
|
|
8
9
|
function resolveBinary(name) {
|
|
9
10
|
const platformPkg = `@relay-core/binaries-${process.platform}-${process.arch}`;
|
|
10
11
|
const file = process.platform === "win32" ? `${name}.exe` : name;
|
|
12
|
+
|
|
11
13
|
try {
|
|
12
14
|
return require.resolve(`${platformPkg}/bin/${file}`);
|
|
13
15
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relay-core/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "RelayCore CLI — high-performance Rust traffic interception proxy with TUI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://relaycore.dev",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@relay-core/binaries-darwin-arm64": "0.
|
|
19
|
-
"@relay-core/binaries-darwin-x64": "0.
|
|
20
|
-
"@relay-core/binaries-linux-
|
|
21
|
-
"@relay-core/binaries-linux-
|
|
22
|
-
"@relay-core/binaries-win32-x64": "0.
|
|
18
|
+
"@relay-core/binaries-darwin-arm64": "0.8.1",
|
|
19
|
+
"@relay-core/binaries-darwin-x64": "0.8.1",
|
|
20
|
+
"@relay-core/binaries-linux-x64": "0.8.1",
|
|
21
|
+
"@relay-core/binaries-linux-arm64": "0.8.1",
|
|
22
|
+
"@relay-core/binaries-win32-x64": "0.8.1"
|
|
23
23
|
},
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=18"
|