fix: WHISPER_CPP_MAIN_PATH constant in win32 platform & define execPath when using electron #178
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several modifications to the
nodejs-whisper
project to configure theshelljs
library to utilize the Node.js executable path. The key changes include updates across multiple files to setshell.config.execPath
to the Node.js executable path.Configuration of
shelljs
:src/autoDownloadModel.ts
: Added configuration to setshell.config.execPath
to the Node.js executable path.src/downloadModel.ts
: Added configuration to setshell.config.execPath
to the Node.js executable path.src/utils.ts
: Added configuration to setshell.config.execPath
to the Node.js executable path.src/whisper.ts:
Added configuration to setshell.config.execPath
to the Node.js executable path.Update to the
WHISPER_CPP_MAIN_PATH
constant:src/constants.ts
: Updated theWHISPER_CPP_MAIN_PATH
for the Windows platform by removing theRelease
directory from the path.Additional Reference:
For more information on
shelljs
compatibility with Electron and configuring theexecPath
, please refer to the ShellJS Electron compatibility wiki