From f372936c340cccbfd02fc47e80d06ec287c4ba1a Mon Sep 17 00:00:00 2001 From: Darcy Wong Date: Mon, 13 Nov 2023 20:43:03 +0700 Subject: [PATCH] chore(web): Add configure step to copy font --- web/src/engine/osk/build.sh | 7 ++++++- web/src/resources/.gitignore | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 web/src/resources/.gitignore diff --git a/web/src/engine/osk/build.sh b/web/src/engine/osk/build.sh index 542b1f21bc..4f1b6ff9a1 100755 --- a/web/src/engine/osk/build.sh +++ b/web/src/engine/osk/build.sh @@ -36,7 +36,12 @@ builder_parse "$@" #### Build action definitions #### -builder_run_action configure verify_npm_setup +if builder_start_action configure; then + verify_npm_setup + cp "$KEYMAN_ROOT/common/resources/fonts/keymanweb-osk.ttf" "$KEYMAN_ROOT/web/src/resources/osk/" + builder_finish_action success configure +fi + builder_run_action clean rm -rf "$KEYMAN_ROOT/web/build/$SUBPROJECT_NAME" builder_run_action build compile $SUBPROJECT_NAME builder_run_action test test-headless osk \ No newline at end of file diff --git a/web/src/resources/.gitignore b/web/src/resources/.gitignore new file mode 100644 index 0000000000..ede6194347 --- /dev/null +++ b/web/src/resources/.gitignore @@ -0,0 +1,2 @@ +# Copied from configure +keymanweb-osk.ttf