renview 0.0.9 → 0.0.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/bin/renview.exe CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  // postinstall 未运行时的占位桩:bin 链接先指向这里,postinstall 会把它替换成真正的原生二进制
3
3
  console.error("renview: the postinstall script did not run, so the binary is missing.");
4
- console.error("Reinstall without --ignore-scripts, or use: curl -fsSL https://renview.6636.tech/install | bash");
4
+ console.error("Reinstall without --ignore-scripts, or use: curl -fsSL https://view.bandwidth.ren/install | bash");
5
5
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "renview",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
+ "homepage": "https://view.bandwidth.ren",
4
5
  "description": "帮助人类降低认知负担的代码审核工具",
5
6
  "license": "MIT",
6
7
  "bin": {
@@ -19,12 +20,12 @@
19
20
  "x64"
20
21
  ],
21
22
  "optionalDependencies": {
22
- "renview-darwin-arm64": "0.0.9",
23
- "renview-darwin-x64": "0.0.9",
24
- "renview-linux-x64": "0.0.9",
25
- "renview-linux-arm64": "0.0.9",
26
- "renview-windows-x64": "0.0.9",
27
- "renview-windows-arm64": "0.0.9"
23
+ "renview-darwin-arm64": "0.0.10",
24
+ "renview-darwin-x64": "0.0.10",
25
+ "renview-linux-x64": "0.0.10",
26
+ "renview-linux-arm64": "0.0.10",
27
+ "renview-windows-x64": "0.0.10",
28
+ "renview-windows-arm64": "0.0.10"
28
29
  },
29
30
  "repository": {
30
31
  "type": "git",
package/postinstall.mjs CHANGED
@@ -14,14 +14,14 @@ import { fileURLToPath } from "node:url";
14
14
  const pkgDir = path.dirname(fileURLToPath(import.meta.url));
15
15
  const binPath = path.join(pkgDir, "bin", "renview.exe");
16
16
  const require = createRequire(import.meta.url);
17
- const version = require("./package.json").version;
17
+ const { version, homepage } = require("./package.json");
18
18
 
19
19
  const OS = { darwin: "darwin", linux: "linux", win32: "windows" };
20
20
  const CPU = { arm64: "arm64", x64: "x64" };
21
21
 
22
22
  function fail(message) {
23
23
  console.error(`renview: ${message}`);
24
- console.error("renview: 也可以改用安装脚本:curl -fsSL https://renview.6636.tech/install | bash");
24
+ console.error(`renview: Alternatively, install with: curl -fsSL ${homepage}/install | bash`);
25
25
  process.exit(1);
26
26
  }
27
27