@shadegpu/cli 0.1.31 → 0.1.32

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/shade.js +2 -17
  2. package/package.json +1 -1
package/bin/shade.js CHANGED
@@ -48,16 +48,7 @@ async function main() {
48
48
  { name: "seccomp.json", path: `${version}/seccomp.json` },
49
49
  ];
50
50
 
51
- // Re-download when version changes (stamp file tracks last-downloaded version)
52
- const stampPath = join(BIN_DIR, ".version");
53
- const installedVersion = existsSync(stampPath)
54
- ? readFileSync(stampPath, "utf-8").trim()
55
- : null;
56
- const versionChanged = installedVersion !== version;
57
-
58
- const missing = versionChanged
59
- ? files
60
- : files.filter((f) => !existsSync(join(BIN_DIR, f.name)));
51
+ const missing = files.filter((f) => !existsSync(join(BIN_DIR, f.name)));
61
52
  if (missing.length > 0) {
62
53
  console.error(
63
54
  `@shadegpu/cli: downloading ${missing.map((f) => f.name).join(", ")}...`,
@@ -65,20 +56,14 @@ async function main() {
65
56
  for (const f of missing) {
66
57
  await download(`${BASE_URL}/${f.path}`, join(BIN_DIR, f.name));
67
58
  }
68
- writeFileSync(stampPath, version);
69
59
  }
70
60
 
71
61
  try {
72
62
  execFileSync(nativeBin, process.argv.slice(2), { stdio: "inherit" });
73
63
  } catch (e) {
74
- if (e && typeof e.status === "number") {
64
+ if (e && e.status !== undefined) {
75
65
  process.exit(e.status);
76
66
  }
77
- // Binary was killed by a signal (segfault, etc.) — surface the error
78
- if (e && e.signal) {
79
- console.error(`@shadegpu/cli: shade-native killed by ${e.signal}`);
80
- process.exit(1);
81
- }
82
67
  throw e;
83
68
  }
84
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shadegpu/cli",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "Encrypted GPU inference on untrusted infrastructure",
5
5
  "bin": {
6
6
  "shade": "bin/shade.js"