diff options
author | a-kenji <aks.kenji@protonmail.com> | 2021-09-30 09:15:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 09:15:47 +0200 |
commit | 7ab0e39931dbe764a3122e3a33cf5e34f2071b56 (patch) | |
tree | df246d08cc36b0255ea6298485a5e4841556e9a9 /Makefile.toml | |
parent | a232a8c39d0aa7ef8f54193d884129ff41577b80 (diff) |
fix(makefile): build-plugins on building dev-dir (#750)
- add building plugins `build-plugins` as a dependency for the task
`build-dev-data-dir`
Diffstat (limited to 'Makefile.toml')
-rw-r--r-- | Makefile.toml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.toml b/Makefile.toml index 79392a647..bede9e4bd 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} |