summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorClayton <[email protected]>2025-08-08 20:07:00 -0400
committerGitHub <[email protected]>2025-08-08 20:07:00 -0400
commit9b6ef074f0a13883e49d491c4f24f467f2d17ca3 (patch)
treee76f1ed76863aefac9930d76862ee6e737249ea0 /packages
parent2f4291672b4f0d1f8145c5722a5f2886494a6dfe (diff)
downloadopencode-9b6ef074f0a13883e49d491c4f24f467f2d17ca3.tar.gz
opencode-9b6ef074f0a13883e49d491c4f24f467f2d17ca3.zip
Reference the actual name of the windows package (#1700)
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/bin/opencode.cmd2
-rw-r--r--packages/opencode/script/postinstall.mjs4
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/opencode/bin/opencode.cmd b/packages/opencode/bin/opencode.cmd
index 5908a815f..3a4ef3e72 100644
--- a/packages/opencode/bin/opencode.cmd
+++ b/packages/opencode/bin/opencode.cmd
@@ -11,7 +11,7 @@ set "script_dir=%~dp0"
set "script_dir=%script_dir:~0,-1%"
rem Detect platform and architecture
-set "platform=win32"
+set "platform=windows"
rem Detect architecture
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
diff --git a/packages/opencode/script/postinstall.mjs b/packages/opencode/script/postinstall.mjs
index 650aa66a2..2c6974123 100644
--- a/packages/opencode/script/postinstall.mjs
+++ b/packages/opencode/script/postinstall.mjs
@@ -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 binary = platform === "win32" ? "opencode.exe" : "opencode"
+ const binary = platform === "windows" ? "opencode.exe" : "opencode"
try {
// Use require.resolve to find the package