File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ set "script_dir=%~dp0"
1111set " script_dir = %script_dir:~0 ,-1 % "
1212
1313rem Detect platform and architecture
14- set " platform = win32 "
14+ set " platform = windows "
1515
1616rem Detect architecture
1717if " %PROCESSOR_ARCHITECTURE% " == " AMD64" (
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 binary = platform === "win32 " ? "opencode.exe" : "opencode"
53+ const binary = 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