]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
node : add win platform check for require path (#3363)
authorDaniel Bevenius <redacted>
Fri, 15 Aug 2025 12:54:23 +0000 (14:54 +0200)
committerGitHub <redacted>
Fri, 15 Aug 2025 12:54:23 +0000 (14:54 +0200)
commit040510a132f0a9b51d4692b57a6abfd8c9660696
tree1d44ac4cc3ef4a35925ed7b0eb60a231c2078a8d
parent16c2924cb2c4b5c9f79220aa7708eb5b346b029b
node : add win platform check for require path (#3363)

This commit adds a check to the platform in use and adjust the path to
the addon.node shared library.

The motivation for this change is that on windows addon.node library is
built into build\bin\Release and on linux into build/Release.

Resolves: https://github.com/ggml-org/whisper.cpp/issues/3360
examples/addon.node/index.js