This repository was archived by the owner on Apr 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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() {
5050function 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
You can’t perform that action at this time.
0 commit comments