mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-03-15 14:30:49 +00:00
20 lines
577 B
Bash
20 lines
577 B
Bash
|
#!/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 aqua-dht.wasm
|
||
|
marine build --release
|
||
|
|
||
|
# copy .wasm to artifacts
|
||
|
rm -f artifacts/*
|
||
|
mkdir -p artifacts
|
||
|
cp target/wasm32-wasi/release/test.wasm artifacts/
|
||
|
|
||
|
# download SQLite 3 to use in tests
|
||
|
curl -L https://github.com/fluencelabs/sqlite/releases/download/v0.14.0_w/sqlite3.wasm -o artifacts/sqlite3.wasm
|
||
|
|
||
|
# generate Aqua bindings
|
||
|
#marine aqua artifacts/aqua-dht.wasm -s AquaDHT -i aqua-dht >../aqua/dht.aqua
|