mirror of
https://github.com/fluencelabs/registry.git
synced 2025-04-25 02:02:14 +00:00
30 lines
678 B
Bash
Executable File
30 lines
678 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -o pipefail -o nounset -o errexit
|
|
|
|
# set current working directory to script directory to run script from everywhere
|
|
cd "$(dirname "$0")"
|
|
SCRIPT_DIR="$(pwd)"
|
|
SCHEDULED="${SCRIPT_DIR}/scheduled"
|
|
|
|
(
|
|
echo "*** compile scheduled scripts ***"
|
|
cd ../aqua
|
|
npx aqua --no-relay --air -i ./dht-scheduled-scripts.aqua -o "$SCHEDULED"
|
|
)
|
|
|
|
(
|
|
echo "*** copy wasm files ***"
|
|
cd ../service
|
|
cp artifacts/*.wasm "$SCRIPT_DIR"
|
|
)
|
|
|
|
(
|
|
echo "*** create builtin distribution package ***"
|
|
cd ..
|
|
mv builtin-package aqua-dht
|
|
tar --exclude="package.sh" -f aqua-dht.tar.gz -zcv ./aqua-dht
|
|
mv aqua-dht builtin-package
|
|
)
|
|
|
|
echo "*** done ***"
|