10 lines
480 B
Bash
10 lines
480 B
Bash
#!/bin/sh
|
|
# Builds the Desaturate example plug-in and refreshes the test fixture built from it.
|
|
# Needs the wasm32-unknown-unknown target: `rustup target add wasm32-unknown-unknown`.
|
|
set -eu
|
|
cd "$(dirname "$0")"
|
|
cargo build --release --target wasm32-unknown-unknown
|
|
out=target/wasm32-unknown-unknown/release/vectorcraft_plugin_desaturate.wasm
|
|
cp "$out" ../tests/fixtures/desaturate.wasm
|
|
echo "built $out ($(wc -c < "$out") bytes) -> crates/plugins/tests/fixtures/desaturate.wasm"
|