mirror of
https://github.com/fluencelabs/fluid
synced 2025-04-24 14:22:18 +00:00
Fix rust run_daemon.sh
This commit is contained in:
parent
d438917e5a
commit
62d30f82b4
@ -3,14 +3,6 @@
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
command -v jq >/dev/null 2>&1 || {
|
||||
echo >&2 "jq is not installed, wouldn't parse responses"
|
||||
}
|
||||
|
||||
command -v base64 >/dev/null 2>&1 || {
|
||||
echo >&2 "base64 is not installed, wouldn't parse responses"
|
||||
}
|
||||
|
||||
mkdir -p wasm
|
||||
|
||||
# Download SQLite
|
||||
@ -22,9 +14,8 @@ fi
|
||||
|
||||
# Build fluid WASM module
|
||||
echo "Building to WASM..."
|
||||
npm --silent install
|
||||
npm --quiet run flbuild
|
||||
cp build/fluid.wasm ./wasm/
|
||||
cargo +nightly build --target wasm32-unknown-unknown --release >/dev/null
|
||||
cp target/wasm32-unknown-unknown/release/*.wasm ./wasm/
|
||||
echo
|
||||
|
||||
# Run it all on 30000 port with default Fluence API
|
||||
@ -78,4 +69,4 @@ RESPONSE=$(echo "$RESPONSE" | jq -r .result.data | base64 --decode 2>/dev/null |
|
||||
# Parse json or print response as is
|
||||
echo "$RESPONSE" | jq . 2>/dev/null || echo "$RESPONSE"
|
||||
|
||||
echo -e "You can now proceed with frontend..."
|
||||
echo -e "You can now proceed with frontend..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user