summaryrefslogtreecommitdiffstats
path: root/Makefile.toml
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-04-29 15:52:22 +0100
committerBrooks J Rady <b.j.rady@gmail.com>2021-04-29 15:53:10 +0100
commit65f15457c1cb4505760394491c3621b4d6d807c6 (patch)
tree6643b2fd892ed93de3c10d02456f7583d614b50a /Makefile.toml
parent28af9f077d6886925407ff537daac7412398c6e9 (diff)
fix(build): don't store binary assets in git
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.toml b/Makefile.toml
index a86742597..628899f9d 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -84,9 +84,10 @@ script = '''
plugins = glob_array ${CARGO_TARGET_DIR}/wasm32-wasi/release/*.wasm
for plugin in ${plugins}
+ mkdir ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/assets/plugins/
plugin_name = basename ${plugin}
plugin_out = set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/assets/plugins/${plugin_name}
- if is_path_newer ${plugin} ${plugin_out}
+ if not is_path_exists ${plugin_out} or is_path_newer ${plugin} ${plugin_out}
exec wasm-opt -O ${plugin} -o ${plugin_out}
end
end