marine/examples/url-downloader/build.sh

28 lines
585 B
Bash
Raw Normal View History

2020-09-11 12:58:38 +00:00
#!/bin/sh
# This script builds all subprojects and puts all created Wasm modules in one dir
(
cd local_storage || exit;
cargo update --aggressive;
2021-05-10 09:51:22 +00:00
marine build --release;
)
(
cd curl_adapter || exit;
cargo update --aggressive;
2021-05-10 09:51:22 +00:00
marine build --release;
)
(
cd facade || exit;
cargo update --aggressive;
2021-05-10 09:51:22 +00:00
marine build --release;
)
rm -f artifacts/* || true
mkdir -p artifacts
2020-09-11 12:58:38 +00:00
2020-09-14 11:22:56 +00:00
cp ../../target/wasm32-wasi/release/local_storage.wasm artifacts/
2020-12-09 12:57:10 +00:00
cp ../../target/wasm32-wasi/release/curl_adapter.wasm artifacts/
2020-11-30 09:14:21 +00:00
cp ../../target/wasm32-wasi/release/facade.wasm artifacts/