examples : fix node compilation (#2115)

* node : fix compilation and update examples

* node : fix readme

* Update addon.node test
This commit is contained in:
Pedro Probst
2024-05-02 18:52:55 -03:00
committed by GitHub
parent 8fac6455ff
commit 58210d6a76
6 changed files with 9 additions and 7 deletions

View File

@@ -14,14 +14,14 @@ npm install
Make sure it is in the project root directory and compiled with make-js.
```shell
npx cmake-js compile -T whisper-addon -B Release
npx cmake-js compile -T addon.node -B Release
```
For Electron addon and cmake-js options, you can see [cmake-js](https://github.com/cmake-js/cmake-js) and make very few configuration changes.
> Such as appointing special cmake path:
> ```shell
> npx cmake-js compile -c 'xxx/cmake' -T whisper-addon -B Release
> npx cmake-js compile -c 'xxx/cmake' -T addon.node -B Release
> ```
## Run