mirror of
https://github.com/zellij-org/zellij.git
synced 2024-12-22 16:51:43 +03:00
fix(makefile): build-plugins on building dev-dir (#750)
- add building plugins `build-plugins` as a dependency for the task `build-dev-data-dir`
This commit is contained in:
parent
a232a8c39d
commit
7ab0e39931
@ -47,13 +47,15 @@ args = ["build"]
|
|||||||
args = ["build", "--release"]
|
args = ["build", "--release"]
|
||||||
|
|
||||||
[tasks.build-dev-data-dir]
|
[tasks.build-dev-data-dir]
|
||||||
|
dependencies = ["build-plugins"]
|
||||||
script_runner = "@duckscript"
|
script_runner = "@duckscript"
|
||||||
script = '''
|
script = '''
|
||||||
asset_dir = set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/assets
|
|
||||||
target_dir = set ${CARGO_TARGET_DIR}
|
target_dir = set ${CARGO_TARGET_DIR}
|
||||||
data_dir = set ${target_dir}/dev-data
|
data_dir = set ${target_dir}/dev-data
|
||||||
rm -r ${data_dir}
|
rm -r ${data_dir}
|
||||||
plugins = glob_array ${target_dir}/wasm32-wasi/debug/*.wasm
|
plugins = glob_array ${target_dir}/wasm32-wasi/debug/*.wasm
|
||||||
|
mkdir ${data_dir}
|
||||||
|
mkdir ${data_dir}/plugins
|
||||||
for plugin in ${plugins}
|
for plugin in ${plugins}
|
||||||
plugin_name = basename ${plugin}
|
plugin_name = basename ${plugin}
|
||||||
cp ${plugin} ${data_dir}/plugins/${plugin_name}
|
cp ${plugin} ${data_dir}/plugins/${plugin_name}
|
||||||
|
Loading…
Reference in New Issue
Block a user