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 -e
|
||||||
set -o pipefail
|
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
|
mkdir -p wasm
|
||||||
|
|
||||||
# Download SQLite
|
# Download SQLite
|
||||||
@ -22,9 +14,8 @@ fi
|
|||||||
|
|
||||||
# Build fluid WASM module
|
# Build fluid WASM module
|
||||||
echo "Building to WASM..."
|
echo "Building to WASM..."
|
||||||
npm --silent install
|
cargo +nightly build --target wasm32-unknown-unknown --release >/dev/null
|
||||||
npm --quiet run flbuild
|
cp target/wasm32-unknown-unknown/release/*.wasm ./wasm/
|
||||||
cp build/fluid.wasm ./wasm/
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Run it all on 30000 port with default Fluence API
|
# 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
|
# Parse json or print response as is
|
||||||
echo "$RESPONSE" | jq . 2>/dev/null || echo "$RESPONSE"
|
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