feat: make npm package install work on windows (#2419)

This commit is contained in:
Mani Sundararajan 2025-09-08 16:14:18 -04:00 committed by GitHub
commit bbaae459c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 43 additions and 2 deletions

View file

@ -70,6 +70,11 @@ function findBinary() {
function main() {
try {
if (os.platform() === "win32") {
console.log("Windows detected, skipping postinstall")
return
}
const binaryPath = findBinary()
const binScript = path.join(__dirname, "bin", "opencode")