From 8ab3da6afd26fceae7b4e02f880586ea35ab09be Mon Sep 17 00:00:00 2001 From: jahorton Date: Mon, 20 Apr 2020 12:14:21 +0700 Subject: [PATCH] fix(web): proper location for testing resource dupe --- common/core/web/input-processor/src/build.sh | 4 +--- web/source/build.sh | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/core/web/input-processor/src/build.sh b/common/core/web/input-processor/src/build.sh index a8cd9e24a7..c08b8cb026 100755 --- a/common/core/web/input-processor/src/build.sh +++ b/common/core/web/input-processor/src/build.sh @@ -60,7 +60,7 @@ fi if [ $BUILD_LMLAYER = true ]; then FLAGS="-no-lerna" - + # Ensure that the LMLayer compiles properly, readying the build product for comsumption by KMW. cd ../../../../predictive-text/ echo "" @@ -68,8 +68,6 @@ if [ $BUILD_LMLAYER = true ]; then ./build.sh $FLAGS || fail "Failed to compile the language modeling layer module." cd ../core/web/input-processor/src # TODO: Move this back to KMW's main build script. Consider it part of the dependency update. - #echo "Copying ${PREDICTIVE_TEXT_SOURCE} to ${PREDICTIVE_TEXT_OUTPUT}" - #cp "${PREDICTIVE_TEXT_SOURCE}" "${PREDICTIVE_TEXT_OUTPUT}" || fail "Failed to copy predictive text model" echo "Language Modeling layer compilation successful." echo "" fi diff --git a/web/source/build.sh b/web/source/build.sh index f06feb8eab..231abe9402 100755 --- a/web/source/build.sh +++ b/web/source/build.sh @@ -302,6 +302,9 @@ readonly DO_MINIFY if [ $FETCH_DEPS = true ]; then # Ensure the dependencies are downloaded. verify_npm_setup + + echo "Copying testing resource ${PREDICTIVE_TEXT_SOURCE} to ${PREDICTIVE_TEXT_OUTPUT}" + cp "${PREDICTIVE_TEXT_SOURCE}" "${PREDICTIVE_TEXT_OUTPUT}" || fail "Failed to copy predictive text model" fi if [ $DO_MINIFY = true ]; then