mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-03 07:33:45 +00:00
feat: make npm package install work on windows (#2419)
This commit is contained in:
committed by
GitHub
parent
eb3c820fb8
commit
bbaae459c6
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user