Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit f80a3fe

Browse files
committed
fixes
1 parent 43a8d1b commit f80a3fe

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/opencode/script/build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ const allTargets: {
6666
avx2: false,
6767
},
6868
{
69-
os: "win32",
69+
os: "windows",
7070
arch: "x64",
7171
},
7272
{
73-
os: "win32",
73+
os: "windows",
7474
arch: "x64",
7575
avx2: false,
7676
},
@@ -127,7 +127,7 @@ for (const item of targets) {
127127
{
128128
name,
129129
version: Script.version,
130-
os: [item.os],
130+
os: [item.os === "windows" ? "win32" : item.os],
131131
cpu: [item.arch],
132132
},
133133
null,

packages/opencode/script/postinstall.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function detectPlatformAndArch() {
2020
platform = "linux"
2121
break
2222
case "win32":
23-
platform = "win32"
23+
platform = "windows"
2424
break
2525
default:
2626
platform = os.platform()
@@ -50,7 +50,7 @@ function detectPlatformAndArch() {
5050
function findBinary() {
5151
const { platform, arch } = detectPlatformAndArch()
5252
const packageName = `opencode-${platform}-${arch}`
53-
const binaryName = platform === "win32" ? "opencode.exe" : "opencode"
53+
const binaryName = platform === "windows" ? "opencode.exe" : "opencode"
5454

5555
try {
5656
// Use require.resolve to find the package

0 commit comments

Comments
 (0)