Skip to content

Commit

Permalink
fix node-gyp conditions on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tmacwill committed Jan 31, 2022
1 parent e843ece commit 5cb101b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
"<(module_root_dir)/build/Release/libonnxruntime.1.10.0.dylib",
],
},
],
[
'OS=="win"',
{
"msvs_settings": {
Expand All @@ -74,6 +76,8 @@
"<(module_root_dir)/lib/3rd_party/onnxruntime/lib/onnxruntime_providers_shared.lib",
],
},
],
[
'OS=="win" and target_arch=="ia32"',
{
"copies": [
Expand All @@ -89,6 +93,8 @@
"<(module_root_dir)/lib/3rd_party/portaudio/lib/portaudio_x86.lib",
],
},
],
[
'OS=="win" and target_arch=="x64"',
{
"copies": [
Expand All @@ -104,6 +110,8 @@
"<(module_root_dir)/lib/3rd_party/portaudio/lib/portaudio_x64.lib",
],
},
],
[
'OS=="linux"',
{
"link_settings": {"ldflags": ["-Wl,-rpath,'$$ORIGIN/'"]},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "speech-recorder",
"version": "2.0.2",
"version": "2.0.3",
"description": "A node.js library for streaming audio and speech from the microphone.",
"main": "src/index.js",
"repository": "https://github.com/serenadeai/speech-recorder",
Expand Down

0 comments on commit 5cb101b

Please sign in to comment.