ruimte 0.20.0 → 0.21.0

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.
Files changed (2) hide show
  1. package/bin/ruimte.js +6 -2
  2. package/package.json +4 -4
package/bin/ruimte.js CHANGED
@@ -13,7 +13,8 @@ import { dirname, join } from "node:path";
13
13
  var TARGETS = [
14
14
  { os: "darwin", cpu: "arm64" },
15
15
  { os: "linux", cpu: "x64" },
16
- { os: "linux", cpu: "arm64" }
16
+ { os: "linux", cpu: "arm64" },
17
+ { os: "win32", cpu: "x64" }
17
18
  ];
18
19
  function targetId(target) {
19
20
  return `${target.os}-${target.cpu}`;
@@ -21,6 +22,9 @@ function targetId(target) {
21
22
  function packageNameOf(target) {
22
23
  return `@ruimte/${targetId(target)}`;
23
24
  }
25
+ function binaryNameOf(os) {
26
+ return os === "win32" ? "ruimte.exe" : "ruimte";
27
+ }
24
28
 
25
29
  // packages/npm/src/launcher.ts
26
30
  class LauncherError extends Error {
@@ -52,7 +56,7 @@ function binaryPathOf(host, resolve, libc = () => null) {
52
56
  }
53
57
  throw new LauncherError(`The package ${name} is missing. It holds the Ruimte binary for this machine and npm installs it as an optional dependency, ` + "so an install with --omit=optional or --no-optional leaves it out. Install ruimte again without that flag.");
54
58
  }
55
- return join(dirname(manifest), "bin", "ruimte");
59
+ return join(dirname(manifest), "bin", binaryNameOf(host.platform));
56
60
  }
57
61
  function exitCodeOf(code, signalNumber) {
58
62
  if (code !== null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ruimte",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Ruimte for a machine without the app: the machine that terminals, agents and browsers run on, reachable from the Ruimte app and station.ruimte.app.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "Bas Milius",
@@ -21,8 +21,8 @@
21
21
  "node": ">=18"
22
22
  },
23
23
  "optionalDependencies": {
24
- "@ruimte/darwin-arm64": "0.20.0",
25
- "@ruimte/linux-x64": "0.20.0",
26
- "@ruimte/linux-arm64": "0.20.0"
24
+ "@ruimte/darwin-arm64": "0.21.0",
25
+ "@ruimte/linux-x64": "0.21.0",
26
+ "@ruimte/linux-arm64": "0.21.0"
27
27
  }
28
28
  }