@dingmenghua/opencode-max 1.15.3-max.0 → 1.15.3-max.2

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/LICENSE CHANGED
File without changes
@@ -1,3 +1,4 @@
1
+ #!/bin/sh
1
2
  echo "Error: opencode-max's postinstall script was not run." >&2
2
3
  echo "" >&2
3
4
  echo "This occurs when using --ignore-scripts during installation, or when using a" >&2
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dingmenghua/opencode-max",
3
3
  "bin": {
4
- "opencode-max": "./bin/opencode-max.exe"
4
+ "opencode-max": "./bin/opencode-max"
5
5
  },
6
6
  "scripts": {
7
7
  "postinstall": "node ./postinstall.mjs"
8
8
  },
9
- "version": "1.15.3-max.0",
9
+ "version": "1.15.3-max.2",
10
10
  "license": "MIT",
11
11
  "os": [
12
12
  "darwin",
package/postinstall.mjs CHANGED
@@ -28,7 +28,7 @@ const platform = platformMap[os.platform()] ?? os.platform()
28
28
  const arch = archMap[os.arch()] ?? os.arch()
29
29
  const base = `${distributionName}-${platform}-${arch}`
30
30
  const sourceBinary = platform === "windows" ? "opencode.exe" : "opencode"
31
- const targetBinary = path.join(__dirname, "bin", `${commandName}.exe`)
31
+ const targetBinary = path.join(__dirname, "bin", commandName)
32
32
 
33
33
  function supportsAvx2() {
34
34
  if (arch !== "x64") return false