Provide npm package for 32-bit Windows x86 (#1141)

This commit is contained in:
Fangjun Kuang
2024-07-17 12:33:15 +08:00
committed by GitHub
parent 5b1fa8750f
commit 9e448d03bc
12 changed files with 383 additions and 66 deletions

View File

@@ -49,6 +49,7 @@
"sherpa-onnx-darwin-x64": "^SHERPA_ONNX_VERSION",
"sherpa-onnx-linux-x64": "^SHERPA_ONNX_VERSION",
"sherpa-onnx-linux-arm64": "^SHERPA_ONNX_VERSION",
"sherpa-onnx-win-x64": "^SHERPA_ONNX_VERSION"
"sherpa-onnx-win-x64": "^SHERPA_ONNX_VERSION",
"sherpa-onnx-win-ia32": "^SHERPA_ONNX_VERSION"
}
}

View File

@@ -9,16 +9,23 @@ platform=$(node -p "require('os').platform()")
arch=$(node -p "require('os').arch()")
echo "platform: $platform"
echo "arch: $arch"
# ia32 for win x86
platform2=$platform
if [[ $platform == win32 ]]; then
platform2=win
fi
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
# SHERPA_ONNX_VERSION=1.0.28
# SHERPA_ONNX_VERSION=1.0.31
if [ -z $owner ]; then
owner=k2-fsa