feat: make npm package install work on windows (#2419)
This commit is contained in:
parent
eb3c820fb8
commit
bbaae459c6
4 changed files with 43 additions and 2 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue