addon: update build command

pull/468/head
chenqianhe 2 years ago
parent 84737cd996
commit 76f8dabf82
No known key found for this signature in database
GPG Key ID: 1AC9D28A999EC1DA

@ -37,7 +37,7 @@ jobs:
run: npm install run: npm install
- name: Compile addon.node - name: Compile addon.node
run: npx cmake-js compile -T whisper-addon run: npx cmake-js compile -T whisper-addon -B Release
- name: Download test model - name: Download test model
run: | run: |

@ -14,14 +14,14 @@ npm install
Make sure it is in the project root directory and compiled with make-js. Make sure it is in the project root directory and compiled with make-js.
```shell ```shell
npx cmake-js compile -T whisper-addon npx cmake-js compile -T whisper-addon -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. 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: > Such as appointing special cmake path:
> ```shell > ```shell
> npx cmake-js compile -c 'xxx/cmake' -T whisper-addon > npx cmake-js compile -c 'xxx/cmake' -T whisper-addon -B Release
> ``` > ```
## Run ## Run

Loading…
Cancel
Save