|
|
@@ -106,15 +106,11 @@ async function main() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ // On non-Windows platforms, just verify the binary package exists
|
|
|
+ // Don't replace the wrapper script - it handles binary execution
|
|
|
const { binaryPath } = findBinary()
|
|
|
- const target = path.join(__dirname, "..", "bin", ".opencode")
|
|
|
- if (fs.existsSync(target)) fs.unlinkSync(target)
|
|
|
- try {
|
|
|
- fs.linkSync(binaryPath, target)
|
|
|
- } catch {
|
|
|
- fs.copyFileSync(binaryPath, target)
|
|
|
- }
|
|
|
- fs.chmodSync(target, 0o755)
|
|
|
+ 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)
|