From 7ab0e39931dbe764a3122e3a33cf5e34f2071b56 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Thu, 30 Sep 2021 09:15:47 +0200 Subject: [PATCH] fix(makefile): build-plugins on building dev-dir (#750) - add building plugins `build-plugins` as a dependency for the task `build-dev-data-dir` --- Makefile.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.toml b/Makefile.toml index 79392a64..bede9e4b 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -47,13 +47,15 @@ args = ["build"] args = ["build", "--release"] [tasks.build-dev-data-dir] +dependencies = ["build-plugins"] script_runner = "@duckscript" script = ''' -asset_dir = set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/assets target_dir = set ${CARGO_TARGET_DIR} data_dir = set ${target_dir}/dev-data rm -r ${data_dir} plugins = glob_array ${target_dir}/wasm32-wasi/debug/*.wasm +mkdir ${data_dir} +mkdir ${data_dir}/plugins for plugin in ${plugins} plugin_name = basename ${plugin} cp ${plugin} ${data_dir}/plugins/${plugin_name}