Fix building wheels on Windows (#229)

This commit is contained in:
Fangjun Kuang
2023-08-01 13:45:02 +08:00
committed by GitHub
parent 5a549615df
commit c88e672733
4 changed files with 23 additions and 2 deletions

View File

@@ -54,9 +54,16 @@ def get_binaries_to_install():
binaries += ["sherpa-onnx-online-websocket-server"]
binaries += ["sherpa-onnx-offline-websocket-server"]
binaries += ["sherpa-onnx-online-websocket-client"]
if is_windows():
binaries += ["kaldi-native-fbank-core.dll"]
binaries += ["sherpa-onnx-c-api.dll"]
binaries += ["sherpa-onnx-core.dll"]
binaries += ["sherpa-onnx-portaudio.dll"]
binaries += ["onnxruntime.dll"]
exe = []
for f in binaries:
suffix = "" if "dll" in f else suffix
t = bin_dir / (f + suffix)
exe.append(str(t))
return exe