mirror of
https://github.com/fluencelabs/aqua-ipfs
synced 2025-03-15 05:00:50 +00:00
25 lines
711 B
Bash
Executable File
25 lines
711 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
# set current working directory to script directory to run script from everywhere
|
|
cd "$(dirname "$0")"
|
|
|
|
# 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
|
|
cp target/wasm32-wasi/release/ipfs_effector.wasm artifacts/
|
|
cp target/wasm32-wasi/release/ipfs_pure.wasm artifacts/
|
|
marine aqua artifacts/ipfs_pure.wasm -s Ipfs -i aqua-ipfs >../aqua/ipfs.aqua
|
|
|
|
mkdir -p distro/ipfs-service
|
|
cp -v artifacts/ipfs_effector.wasm artifacts/ipfs_pure.wasm artifacts/Config.toml distro/ipfs-service
|
|
cd distro
|
|
cargo build
|