This commit is contained in:
Aiden Cline
2025-11-12 22:05:07 -06:00
parent 43a8d1b1ae
commit f80a3fea31
2 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ function detectPlatformAndArch() {
platform = "linux"
break
case "win32":
platform = "win32"
platform = "windows"
break
default:
platform = os.platform()
@@ -50,7 +50,7 @@ function detectPlatformAndArch() {
function findBinary() {
const { platform, arch } = detectPlatformAndArch()
const packageName = `opencode-${platform}-${arch}`
const binaryName = platform === "win32" ? "opencode.exe" : "opencode"
const binaryName = platform === "windows" ? "opencode.exe" : "opencode"
try {
// Use require.resolve to find the package