marine/examples/url-downloader/build.sh
2021-05-10 12:51:22 +03:00

28 lines
585 B
Bash
Executable File

#!/bin/sh
# This script builds all subprojects and puts all created Wasm modules in one dir
(
cd local_storage || exit;
cargo update --aggressive;
marine build --release;
)
(
cd curl_adapter || exit;
cargo update --aggressive;
marine build --release;
)
(
cd facade || exit;
cargo update --aggressive;
marine build --release;
)
rm -f artifacts/* || true
mkdir -p artifacts
cp ../../target/wasm32-wasi/release/local_storage.wasm artifacts/
cp ../../target/wasm32-wasi/release/curl_adapter.wasm artifacts/
cp ../../target/wasm32-wasi/release/facade.wasm artifacts/