mirror of
https://github.com/fluencelabs/trust-graph
synced 2024-12-12 10:55:33 +00:00
c85fb16de3
Fix build script
21 lines
488 B
Bash
Executable File
21 lines
488 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)"
|
|
|
|
(
|
|
echo "*** copy wasm files ***"
|
|
cd ../service
|
|
cp artifacts/*.wasm "$SCRIPT_DIR"
|
|
)
|
|
|
|
(
|
|
echo "*** create builtin distribution package ***"
|
|
cd ..
|
|
tar --exclude="package.sh" -f trust-graph.tar.gz -zcv --transform 's|builtin-package|trust-graph|' builtin-package
|
|
)
|
|
|
|
echo "*** done ***"
|