2023-06-13 18:00:48 +02:00
|
|
|
#!/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")"
|
|
|
|
|
|
|
|
# Build the service
|
|
|
|
./service/build.sh
|
|
|
|
|
|
|
|
DISTRO_TARGET=distro/registry-service
|
|
|
|
mkdir -p "$DISTRO_TARGET"
|
|
|
|
|
2023-06-19 20:30:24 +03:00
|
|
|
cd ./aqua
|
2023-12-05 12:27:53 +01:00
|
|
|
fluence aqua -i ../spell/spell.aqua --no-relay --air -o "../$DISTRO_TARGET/air"
|
2023-06-13 18:00:48 +02:00
|
|
|
cd -
|
|
|
|
|
|
|
|
cp service/artifacts/registry.wasm service/artifacts/sqlite3.wasm distro/Config.toml "$DISTRO_TARGET"
|
|
|
|
|
|
|
|
cd distro
|
|
|
|
cargo build
|