fix(build): don't store binary assets in git

This commit is contained in:
Brooks J Rady 2021-04-29 15:52:22 +01:00
parent 28af9f077d
commit 65f15457c1
6 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
assets/plugins
/target
*.new
.vscode

View file

@ -7,7 +7,7 @@ description = "A terminal workspace with batteries included"
license = "MIT"
repository = "https://github.com/zellij-org/zellij"
homepage = "https://zellij.dev"
include = ["src/**/*", "assets/plugins/*", "assets/layouts/*", "LICENSE.md", "README.md", "!**/*_test.*", "!**/tests/**/*"]
include = ["src/**/*", "assets/plugins/*", "assets/layouts/*", "assets/config/*", "LICENSE.md", "README.md", "!**/*_test.*", "!**/tests/**/*"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -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

Binary file not shown.

Binary file not shown.

Binary file not shown.