addon: rename dir

pull/443/head
chenqianhe 2 years ago
parent e25b4c8272
commit 94843cc3ac

@ -25,7 +25,7 @@ if (EMSCRIPTEN)
add_subdirectory(talk.wasm) add_subdirectory(talk.wasm)
add_subdirectory(bench.wasm) add_subdirectory(bench.wasm)
else() else()
add_subdirectory(addon) add_subdirectory(addon.node)
add_subdirectory(main) add_subdirectory(main)
add_subdirectory(stream) add_subdirectory(stream)
add_subdirectory(command) add_subdirectory(command)

@ -1,4 +1,4 @@
set(TARGET addon) set(TARGET whisper-addon)
# Base settings # Base settings
#================================================================== #==================================================================

@ -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 addon npx cmake-js compile -T whisper-addon
``` ```
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 addon > npx cmake-js compile -c 'xxx/cmake' -T whisper-addon
> ``` > ```
## Run ## Run

@ -1,5 +1,5 @@
const path = require('path'); const path = require('path');
const { whisper } = require(path.join(__dirname, '../../build/Release/addon')); const { whisper } = require(path.join(__dirname, '../../build/Release/whisper-addon'));
const whisperParams = { const whisperParams = {
language: 'en', language: 'en',
Loading…
Cancel
Save