2021-06-24 13:59:55 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
|
2021-07-08 13:45:39 +03:00
|
|
|
# set current working directory to script directory to run script from everywhere
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
2021-06-24 13:59:55 +03:00
|
|
|
# This script builds all subprojects and puts all created Wasm modules in one dir
|
|
|
|
cd effector
|
|
|
|
marine build --release
|
|
|
|
|
|
|
|
cd ../pure
|
|
|
|
marine build --release
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
mkdir -p artifacts
|
|
|
|
rm -f artifacts/*.wasm
|
2021-07-15 19:46:19 +03:00
|
|
|
cp target/wasm32-wasi/release/ipfs_effector.wasm artifacts/
|
|
|
|
cp target/wasm32-wasi/release/ipfs_pure.wasm artifacts/
|
2021-08-23 18:24:52 +03:00
|
|
|
marine aqua artifacts/ipfs_pure.wasm -s Ipfs -i aqua-ipfs >../aqua/ipfs.aqua
|
2023-04-24 11:20:55 +02:00
|
|
|
|
|
|
|
mkdir -p distro/ipfs-service
|
2023-06-09 14:44:06 +02:00
|
|
|
cp -v artifacts/ipfs_effector.wasm artifacts/ipfs_pure.wasm artifacts/Config.toml distro/ipfs-service
|
|
|
|
cd distro
|
|
|
|
cargo build
|