mirror of
https://github.com/fluencelabs/aquavm
synced 2024-12-13 11:15:33 +00:00
17 lines
374 B
Bash
Executable File
17 lines
374 B
Bash
Executable File
#!/bin/sh
|
|
|
|
## requires wasm-pack
|
|
## > curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
|
|
(
|
|
cd ../..;
|
|
mkdir -p ./avm/client/wasm || exit;
|
|
wasm-pack build ./air-interpreter --no-typescript --release -d ../avm/client/wasm
|
|
)
|
|
|
|
cat << EOF > ./src/wasm.js
|
|
// auto-generated
|
|
|
|
module.exports = "$(base64 -w0 wasm/air_interpreter_client_bg.wasm)";
|
|
EOF
|