@rivetkit/engine-cli 2.2.1-pr.4600.bad9871 → 2.3.0-rc.10
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/README.md +4 -2
- package/index.js +20 -0
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -11,9 +11,11 @@ path to the binary for the current host.
|
|
|
11
11
|
- `linux-arm64-musl` — Linux aarch64 (static)
|
|
12
12
|
- `darwin-x64` — macOS Intel
|
|
13
13
|
- `darwin-arm64` — macOS Apple Silicon
|
|
14
|
+
- `win32-x64` — Windows x64 on release versions only
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
Preview tags do not publish the Windows platform package. On preview builds,
|
|
17
|
+
use the PowerShell installer from `https://releases.rivet.dev` or point
|
|
18
|
+
`RIVET_ENGINE_BINARY` at a local `rivet-engine.exe`.
|
|
17
19
|
|
|
18
20
|
## Usage
|
|
19
21
|
|
package/index.js
CHANGED
|
@@ -64,6 +64,13 @@ function getEnginePath() {
|
|
|
64
64
|
// 3) Platform-specific npm package.
|
|
65
65
|
const platformPkg = getPlatformPackageName();
|
|
66
66
|
if (!platformPkg) {
|
|
67
|
+
if (process.platform === "win32" && process.arch === "x64") {
|
|
68
|
+
throw new Error(
|
|
69
|
+
"@rivetkit/engine-cli: Windows x64 is not yet supported via npm platform packages.\n" +
|
|
70
|
+
"Use the PowerShell installer from releases.rivet.dev or set RIVET_ENGINE_BINARY\n" +
|
|
71
|
+
"to a local rivet-engine.exe binary.",
|
|
72
|
+
);
|
|
73
|
+
}
|
|
67
74
|
throw new Error(
|
|
68
75
|
`@rivetkit/engine-cli: unsupported platform ${process.platform}/${process.arch}`,
|
|
69
76
|
);
|
|
@@ -72,6 +79,19 @@ function getEnginePath() {
|
|
|
72
79
|
try {
|
|
73
80
|
pkgJsonPath = require.resolve(`${platformPkg}/package.json`);
|
|
74
81
|
} catch {
|
|
82
|
+
if (process.platform === "win32" && process.arch === "x64") {
|
|
83
|
+
const version = require("./package.json").version;
|
|
84
|
+
if (
|
|
85
|
+
typeof version === "string" &&
|
|
86
|
+
(version.includes("-pr.") || version.includes("-main."))
|
|
87
|
+
) {
|
|
88
|
+
throw new Error(
|
|
89
|
+
"@rivetkit/engine-cli: Windows x64 binaries are only published for release versions.\n" +
|
|
90
|
+
`The current package version (${version}) is a preview build, so @rivetkit/engine-cli-win32-x64 was intentionally not published.\n` +
|
|
91
|
+
"Use a proper release, the PowerShell installer from releases.rivet.dev, or set RIVET_ENGINE_BINARY to a local rivet-engine.exe binary.",
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
75
95
|
throw new Error(
|
|
76
96
|
`@rivetkit/engine-cli: platform package ${platformPkg} is not installed.\n` +
|
|
77
97
|
`This usually means the platform is not supported or optionalDependencies\n` +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/engine-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-rc.10",
|
|
4
4
|
"description": "Rivet Engine binary distributed as platform-specific npm packages",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "index.js",
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@rivetkit/engine-cli-darwin-arm64": "2.
|
|
19
|
-
"@rivetkit/engine-cli-darwin-x64": "2.
|
|
20
|
-
"@rivetkit/engine-cli-linux-arm64-musl": "2.
|
|
21
|
-
"@rivetkit/engine-cli-linux-x64-musl": "2.
|
|
18
|
+
"@rivetkit/engine-cli-darwin-arm64": "2.3.0-rc.10",
|
|
19
|
+
"@rivetkit/engine-cli-darwin-x64": "2.3.0-rc.10",
|
|
20
|
+
"@rivetkit/engine-cli-linux-arm64-musl": "2.3.0-rc.10",
|
|
21
|
+
"@rivetkit/engine-cli-linux-x64-musl": "2.3.0-rc.10",
|
|
22
|
+
"@rivetkit/engine-cli-win32-x64": "2.3.0-rc.10"
|
|
22
23
|
}
|
|
23
24
|
}
|