From a2df3535b72c66a335429b7c7bed563b99c26ed0 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 22 Feb 2024 11:30:08 +0800 Subject: [PATCH] Install wasm tts in a separate directory (#600) --- .github/workflows/wasm-simd-hf-space-de-tts.yaml | 2 +- .github/workflows/wasm-simd-hf-space-en-tts.yaml | 2 +- build-wasm-simd-tts.sh | 2 ++ wasm/tts/CMakeLists.txt | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wasm-simd-hf-space-de-tts.yaml b/.github/workflows/wasm-simd-hf-space-de-tts.yaml index e600f8ff7..29d87883d 100644 --- a/.github/workflows/wasm-simd-hf-space-de-tts.yaml +++ b/.github/workflows/wasm-simd-hf-space-de-tts.yaml @@ -61,7 +61,7 @@ jobs: run: | SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) - mv build-wasm-simd-tts/install/bin/wasm sherpa-onnx-wasm-simd-${SHERPA_ONNX_VERSION}-de-tts + mv build-wasm-simd-tts/install/bin/wasm/tts sherpa-onnx-wasm-simd-${SHERPA_ONNX_VERSION}-de-tts ls -lh sherpa-onnx-wasm-simd-${SHERPA_ONNX_VERSION}-de-tts tar cjfv sherpa-onnx-wasm-simd-${SHERPA_ONNX_VERSION}-de-tts.tar.bz2 ./sherpa-onnx-wasm-simd-${SHERPA_ONNX_VERSION}-de-tts diff --git a/.github/workflows/wasm-simd-hf-space-en-tts.yaml b/.github/workflows/wasm-simd-hf-space-en-tts.yaml index efd0c76ab..3d5265f6a 100644 --- a/.github/workflows/wasm-simd-hf-space-en-tts.yaml +++ b/.github/workflows/wasm-simd-hf-space-en-tts.yaml @@ -59,7 +59,7 @@ jobs: run: | SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) - mv build-wasm-simd-tts/install/bin/wasm sherpa-onnx-wasm-simd-${SHERPA_ONNX_VERSION}-en-tts + mv build-wasm-simd-tts/install/bin/wasm/tts sherpa-onnx-wasm-simd-${SHERPA_ONNX_VERSION}-en-tts ls -lh sherpa-onnx-wasm-simd-${SHERPA_ONNX_VERSION}-en-tts tar cjfv sherpa-onnx-wasm-simd-${SHERPA_ONNX_VERSION}-en-tts.tar.bz2 ./sherpa-onnx-wasm-simd-${SHERPA_ONNX_VERSION}-en-tts diff --git a/build-wasm-simd-tts.sh b/build-wasm-simd-tts.sh index f3483613c..085a4d892 100755 --- a/build-wasm-simd-tts.sh +++ b/build-wasm-simd-tts.sh @@ -57,3 +57,5 @@ cmake \ .. make -j2 make install + +ls -lh install/bin/wasm/tts diff --git a/wasm/tts/CMakeLists.txt b/wasm/tts/CMakeLists.txt index 2b5cf41f5..5ea3c31ee 100644 --- a/wasm/tts/CMakeLists.txt +++ b/wasm/tts/CMakeLists.txt @@ -42,7 +42,7 @@ endif() add_executable(sherpa-onnx-wasm-main sherpa-onnx-wasm-main.cc) target_link_libraries(sherpa-onnx-wasm-main sherpa-onnx-c-api) -install(TARGETS sherpa-onnx-wasm-main DESTINATION bin/wasm) +install(TARGETS sherpa-onnx-wasm-main DESTINATION bin/wasm/tts) install( FILES @@ -54,5 +54,5 @@ install( "$/sherpa-onnx-wasm-main.data" # "$/sherpa-onnx-wasm-main.html" DESTINATION - bin/wasm + bin/wasm/tts )