Sfoglia il codice sorgente

fix: remove the symlinkBinary function call that replaces the wrapper script (#8133)

Co-authored-by: Chuck Chen <[email protected]>
Aiden Cline 2 mesi fa
parent
commit
2072c8681a
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      packages/opencode/script/postinstall.mjs

+ 5 - 2
packages/opencode/script/postinstall.mjs

@@ -106,8 +106,11 @@ async function main() {
       return
     }
 
-    const { binaryPath, binaryName } = findBinary()
-    symlinkBinary(binaryPath, binaryName)
+    // On non-Windows platforms, just verify the binary package exists  
+    // Don't replace the wrapper script - it handles binary execution  
+    const { binaryPath } = findBinary()  
+    console.log(`Platform binary verified at: ${binaryPath}`)  
+    console.log("Wrapper script will handle binary execution") 
   } catch (error) {
     console.error("Failed to setup opencode binary:", error.message)
     process.exit(1)